Re: [RFAv3 2/6] Improve process exit status macros on MinGW

Eli Zaretskii
2020-01-06T19:34:33Z

> Date: Mon, 6 Jan 2020 18:59:36 +0000 (UTC)
> From: "Hannes Domani via gdb-patches" <gdb-patches@sourceware.org>
>
> C:/src/repos/binutils-gdb.git/gdb/gdbsupport/gdb_wait.c: In function 'int windows_status_to_termsig(long unsigned int)':
> C:/src/repos/binutils-gdb.git/gdb/gdbsupport/gdb_wait.c:56:37: error: 'SIGSEGV' was not declared in this scope
> Â Â  56 |Â Â Â Â Â  {EXCEPTION_ACCESS_VIOLATION,Â Â  SIGSEGV},
> Â Â Â Â Â  |Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â  ^~~~~~~

Does the below help?

diff --git a/gdb/gdbsupport/gdb_wait.c b/gdb/gdbsupport/gdb_wait.c
index 037ba64..6facc48 100644
--- a/gdb/gdbsupport/gdb_wait.c
+++ b/gdb/gdbsupport/gdb_wait.c
@@ -34,7 +34,7 @@
false positives is justified by the utility of reporting the
terminating signal in the "normal" cases. */

-# include "gdb/signals.h" /* for enum gdb_signal */
+# include <signal.h>

# define WIN32_LEAN_AND_MEAN