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: "Hannes Domani via gdb-patches" <gdb-patches at sourceware dot org>
- To: Gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 6 Jan 2020 18:59:36 +0000 (UTC)
- 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>
- Reply-to: Hannes Domani <ssbssa at yahoo dot de>
Am Freitag, 3. Januar 2020, 20:59:45 MEZ hat Pedro Alves <palves@redhat.com> Folgendes geschrieben:
> See the new version in the new patch. It's the same, except it
> returns host signals SIGSEGV, SIGILL, etc., and -1 on "unknown".
> Here's the updated patch. I confirmed that it builds on MinGW-W64
> using my Fedora's cross cross compiler, but I didn't try to run
> the resulting GDB (since I'm not on Windows).
>
> WDYT? Does it work for you? I think this should have a NEWS
> entry, BTW.
I just tried to compile current master (with a native mingw-w64 compiler), and have this failure:
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},
| ^~~~~~~
C:/src/repos/binutils-gdb.git/gdb/gdbsupport/gdb_wait.c:59:40: error: 'SIGILL' was not declared in this scope
59 | {EXCEPTION_ILLEGAL_INSTRUCTION, SIGILL},
| ^~~~~~
C:/src/repos/binutils-gdb.git/gdb/gdbsupport/gdb_wait.c:62:41: error: 'SIGFPE' was not declared in this scope
62 | {EXCEPTION_FLT_DENORMAL_OPERAND, SIGFPE},
| ^~~~~~
C:/src/repos/binutils-gdb.git/gdb/gdbsupport/gdb_wait.c:73:27: error: 'SIGTERM' was not declared in this scope
73 | {CONTROL_C_EXIT, SIGTERM}
| ^~~~~~~
Once I add #include <signal.h>, it works again.
Am I the only one with this problem?
Regards
Hannes Domani