diff options
author | Pedro Alves <palves@redhat.com> | 2015-11-17 15:17:45 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-11-17 15:20:48 +0000 |
commit | 56db1d676cf48a3d90174f212379679d84bc3118 (patch) | |
tree | 774eccbcc39900e884942b1d75fd1ea7468b8233 | |
parent | c08790597c54c015ecfcd7ea56ebe30fa1d9e946 (diff) | |
download | gdb-56db1d676cf48a3d90174f212379679d84bc3118.zip gdb-56db1d676cf48a3d90174f212379679d84bc3118.tar.gz gdb-56db1d676cf48a3d90174f212379679d84bc3118.tar.bz2 |
[C++/mingw] Fix windows-nat.c::xlate
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/windows-nat.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3bec8cb..4639df4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 * instead of void *. Update comment. (net_read_prim): Cast recv argument to char * instead of void *. diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 2e12493..cce10f8 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -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. */ |