diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-11-06 13:57:52 -0600 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-12-10 13:23:01 -0600 |
commit | ab7d13f07027e6232a21448ef51f0a52a96738a9 (patch) | |
tree | ee2099c8cad324e6aea8a9f24a326fe5180e8380 /gdb/config.in | |
parent | 0e7aaa728dc23f81a7809f3c5c9b90e85b978a8a (diff) | |
download | gdb-ab7d13f07027e6232a21448ef51f0a52a96738a9.zip gdb-ab7d13f07027e6232a21448ef51f0a52a96738a9.tar.gz gdb-ab7d13f07027e6232a21448ef51f0a52a96738a9.tar.bz2 |
Replace the remaining uses of strerror with safe_strerror
To do that, this patch makes IPA compile safe-strerror as well. Because
it doesn't use Gnulib, it calls the Glibc version of strerror_r directly.
Consequently this patch also removes the configure checks for strerror.
gdb/ChangeLog:
2019-12-10 Christian Biesinger <cbiesinger@google.com>
* config.in: Regenerate.
* configure: Regenerate.
* gdbsupport/agent.c (gdb_connect_sync_socket): Call
safe_strerror instead of strerror.
* gdbsupport/common.m4: Don't check for strerror.
* gdbsupport/safe-strerror.c: Support both the glibc version
of strerror_r and the XSI version.
gdb/gdbserver/ChangeLog:
2019-12-10 Christian Biesinger <cbiesinger@google.com>
* Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Don't check for strerror.
* linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
Call safe_strerror instead of strerror.
* server.h (strerror): Remove this now-unnecessary declaration.
* tracepoint.c (init_named_socket): Call safe_strerror instead of
strerror.
(gdb_agent_helper_thread): Likewise.
* utils.c (perror_with_name): Likewise.
Change-Id: I74848f072dcde75cb55c435ef9398dc8f958cd73
Diffstat (limited to 'gdb/config.in')
-rw-r--r-- | gdb/config.in | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/config.in b/gdb/config.in index 1caf764..cb886ba 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -117,10 +117,6 @@ don't. */ #undef HAVE_DECL_SNPRINTF -/* Define to 1 if you have the declaration of `strerror', and to 0 if you - don't. */ -#undef HAVE_DECL_STRERROR - /* Define to 1 if you have the declaration of `strstr', and to 0 if you don't. */ #undef HAVE_DECL_STRSTR |