From 56db1d676cf48a3d90174f212379679d84bc3118 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 17 Nov 2015 15:17:45 +0000 Subject: [PATCH] [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 * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as signal number for terminator. --- gdb/ChangeLog | 5 +++++ gdb/windows-nat.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3bec8cbea27..4639df48280 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-11-17 Pedro Alves + + * windows-nat.c (xslate): Use GDB_SIGNAL_UNKNOWN instead of -1 as + signal number for terminator. + 2015-11-17 Pedro Alves * ser-tcp.c (net_open) : Cast getsockopt argument to char * diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 2e1249300f3..cce10f8818e 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. */ -- 2.30.2