diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-11-12 21:55:15 -0600 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-11-15 13:31:36 -0800 |
commit | cd850b40cc84ff08c50b8b16a0968b3cd6b33664 (patch) | |
tree | d24cfd79997e75f5d8ba7c0d83faed583a47b523 /gdb/Makefile.in | |
parent | e176f82170871202640d53d8edc0caa5c450901f (diff) | |
download | gdb-cd850b40cc84ff08c50b8b16a0968b3cd6b33664.zip gdb-cd850b40cc84ff08c50b8b16a0968b3cd6b33664.tar.gz gdb-cd850b40cc84ff08c50b8b16a0968b3cd6b33664.tar.bz2 |
Use gnulib's strerror_r on MinGW
There is no need to keep mingw-strerror around; we can just always use
the code from posix-strerror. The main reason we had that code, it
seems, is to handle winsock error codes, but gnulib's version
handles those.
Unfortunately the code can't be moved into common-utils.c because
libinproctrace.so uses common-utils but not gnulib.
gdb/ChangeLog:
2019-11-15 Christian Biesinger <cbiesinger@google.com>
* Makefile.in: Replace {posix,mingw}-strerror.c with safe-strerror.c.
* configure: Regenerate.
* configure.ac: Don't source common.host.
* gdbsupport/common.host: Remove.
* gdbsupport/mingw-strerror.c: Remove.
* gdbsupport/posix-strerror.c: Rename to...
* gdbsupport/safe-strerror.c: ...this.
gdb/gdbserver/ChangeLog:
2019-11-15 Christian Biesinger <cbiesinger@google.com>
* Makefile.in: Add safe-strerror.c.
* configure: Regenerate.
* configure.ac: Don't source common.host.
Change-Id: I9e6d8a752fc398784201f370cafee65e0ea05474
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 9ca77f6..5a4ffd5 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -986,6 +986,7 @@ COMMON_SFILES = \ gdbsupport/ptid.c \ gdbsupport/rsp-low.c \ gdbsupport/run-time-clock.c \ + gdbsupport/safe-strerror.c \ gdbsupport/scoped_mmap.c \ gdbsupport/signals.c \ gdbsupport/signals-state-save-restore.c \ @@ -2344,9 +2345,7 @@ ALLDEPFILES = \ xtensa-linux-nat.c \ xtensa-linux-tdep.c \ xtensa-tdep.c \ - xtensa-xtregs.c \ - gdbsupport/mingw-strerror.c \ - gdbsupport/posix-strerror.c + xtensa-xtregs.c # Some files need explicit build rules (due to -Werror problems) or due # to sub-directory fun 'n' games. |