[C++/mingw] Fix windows-nat.c::xlate
authorPedro Alves <palves@redhat.com>
Tue, 17 Nov 2015 15:17:45 +0000 (15:17 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 17 Nov 2015 15:20:48 +0000 (15:20 +0000)
Fixes:

../../src/gdb/windows-nat.c:287:11: error: invalid conversion from 'int' to 'gdb_signal' [-fpermissive]
   {-1, -1}};
           ^

The signal number here doesn't really matter.

gdb/ChangeLog:
2015-11-17  Pedro Alves  <palves@redhat.com>

* windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
signal number for terminator.

gdb/ChangeLog
gdb/windows-nat.c

index 3bec8cbea274d7208b6d4d347fed8de4082778d6..4639df482800236d245a5580d1d59140335f3444 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-17  Pedro Alves  <palves@redhat.com>
+
+       * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as
+       signal number for terminator.
+
 2015-11-17  Pedro Alves  <palves@redhat.com>
 
        * ser-tcp.c (net_open) : Cast getsockopt argument to char *
index 2e1249300f362ef91618d80ff1170693190e39e1..cce10f8818edead664a7b714c493175a73bdcd35 100644 (file)
@@ -284,7 +284,7 @@ static const struct xlate_exception
   {DBG_CONTROL_C, GDB_SIGNAL_INT},
   {EXCEPTION_SINGLE_STEP, GDB_SIGNAL_TRAP},
   {STATUS_FLOAT_DIVIDE_BY_ZERO, GDB_SIGNAL_FPE},
-  {-1, -1}};
+  {-1, GDB_SIGNAL_UNKNOWN}};
 
 /* Set the MAPPINGS static global to OFFSETS.
    See the description of MAPPINGS for more details.  */
This page took 0.036544 seconds and 4 git commands to generate.