This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFAv3 2/6] Improve process exit status macros on MinGW
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Hannes Domani <ssbssa at yahoo dot de>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 06 Jan 2020 21:34:38 +0200
- Subject: Re: [RFAv3 2/6] Improve process exit status macros on MinGW
- References: <20190504161753.15530-1-philippe.waroquiers@skynet.be> <20190504161753.15530-3-philippe.waroquiers@skynet.be> <a8d1a153-4d17-9a3c-82bb-389d44d073d4@redhat.com> <835zie51mf.fsf@gnu.org> <52c4ca33-ffc4-8e1e-fe08-a92123ef02aa@redhat.com> <83o8w536l6.fsf@gnu.org> <3aacf88f-212e-f11f-0688-4f8219dab4c3@redhat.com> <83k16t32no.fsf@gnu.org> <83fth8v1nu.fsf@gnu.org> <52408aa9-5a86-2ade-ec23-c8293eff130d@redhat.com> <1720750964.12023035.1578337176662@mail.yahoo.com>
> 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
# include <windows.h> /* for EXCEPTION_* constants */