From cd850b40cc84ff08c50b8b16a0968b3cd6b33664 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Tue, 12 Nov 2019 21:55:15 -0600 Subject: 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 * 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 * Makefile.in: Add safe-strerror.c. * configure: Regenerate. * configure.ac: Don't source common.host. Change-Id: I9e6d8a752fc398784201f370cafee65e0ea05474 --- gdb/configure | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gdb/configure') diff --git a/gdb/configure b/gdb/configure index e805903..4afd7f9 100755 --- a/gdb/configure +++ b/gdb/configure @@ -6556,10 +6556,6 @@ fi . $srcdir/configure.host -# Add in the common host objects. -. $srcdir/gdbsupport/common.host -gdb_host_obs="$gdb_host_obs $common_host_obs" - # Accumulate some settings from configure.tgt over all enabled targets TARGET_OBS= -- cgit v1.1