aboutsummaryrefslogtreecommitdiff
path: root/gdb/windows-nat.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-11-17 15:17:45 +0000
committerPedro Alves <palves@redhat.com>2015-11-17 15:20:48 +0000
commit56db1d676cf48a3d90174f212379679d84bc3118 (patch)
tree774eccbcc39900e884942b1d75fd1ea7468b8233 /gdb/windows-nat.c
parentc08790597c54c015ecfcd7ea56ebe30fa1d9e946 (diff)
downloadgdb-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.
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r--gdb/windows-nat.c2
1 files changed, 1 insertions, 1 deletions
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. */