This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] [C++/mingw] Fix windows-nat.c::xlate
- From: Pedro Alves <palves at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 17 Nov 2015 15:27:04 -0000
- Subject: [binutils-gdb] [C++/mingw] Fix windows-nat.c::xlate
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=56db1d676cf48a3d90174f212379679d84bc3118
commit 56db1d676cf48a3d90174f212379679d84bc3118
Author: Pedro Alves <palves@redhat.com>
Date: Tue Nov 17 15:17:45 2015 +0000
[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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/windows-nat.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
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. */