X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbsupport%2Fcommon-utils.h;h=ba03427c6f790095345b25807ec4c7017a782e11;hb=66182876b46d40163e81504f7fa4f206268cb83c;hp=23bf354a8bd1bedff5c6855ec0759acb430173bf;hpb=87f34879e5339be458505ca85f70cff346295140;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbsupport/common-utils.h b/gdb/gdbsupport/common-utils.h index 23bf354a8b..ba03427c6f 100644 --- a/gdb/gdbsupport/common-utils.h +++ b/gdb/gdbsupport/common-utils.h @@ -1,6 +1,6 @@ /* Shared general utility routines for GDB, the GNU debugger. - Copyright (C) 1986-2019 Free Software Foundation, Inc. + Copyright (C) 1986-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -108,9 +108,9 @@ std::string extract_string_maybe_quoted (const char **arg); /* The strerror() function can return NULL for errno values that are out of range. Provide a "safe" version that always returns a - printable string. */ + printable string. This version is also thread-safe. */ -extern char *safe_strerror (int); +extern const char *safe_strerror (int); /* Return true if the start of STRING matches PATTERN, false otherwise. */