This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]