public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [C++/mingw] gdbserver: gdb/host signal mixup
@ 2015-11-17 16:37 sergiodj+buildbot
  2015-11-17 16:39 ` Failures on RHEL-s390x-m64, branch master sergiodj+buildbot
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: sergiodj+buildbot @ 2015-11-17 16:37 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT ce7715e2594db00b2f434f62aa264a1061221b72 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: ce7715e2594db00b2f434f62aa264a1061221b72

[C++/mingw] gdbserver: gdb/host signal mixup

Building in C++ caught a buglet here:

../../../src/gdb/gdbserver/win32-low.c: In function 'void win32_resume(thread_resume*, size_t)':
../../../src/gdb/gdbserver/win32-low.c:929:11: error: invalid conversion from 'int' to 'gdb_signal' [-fpermissive]
       sig = resume_info[0].sig;
           ^
../../../src/gdb/gdbserver/win32-low.c:934:11: error: invalid conversion from 'int' to 'gdb_signal' [-fpermissive]
       sig = 0;
           ^

Signals in the "struct thread_resume" structure are host signals, not
gdb signals.  The current code happens to work because the only
signals that the Windows port supports have the same number as the gdb
equivalent (see handle_exception for the win32 exception -> gdb signal
mapping).

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

	* win32-low.c (win32_resume): Use gdb_signal_from_host,
	GDB_SIGNAL_0 and gdb_signal_to_string.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-11-18 12:31 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17 16:37 [binutils-gdb] [C++/mingw] gdbserver: gdb/host signal mixup sergiodj+buildbot
2015-11-17 16:39 ` Failures on RHEL-s390x-m64, branch master sergiodj+buildbot
2015-11-17 18:55 ` Failures on Debian-s390x-native-gdbserver-m64, " sergiodj+buildbot
2015-11-17 19:12 ` Failures on Debian-s390x-native-extended-gdbserver-m64, " sergiodj+buildbot
2015-11-17 19:19 ` Failures on AIX-POWER7-plain, " sergiodj+buildbot
2015-11-17 19:34 ` Failures on Fedora-i686, " sergiodj+buildbot
2015-11-17 19:42 ` Failures on Fedora-x86_64-m32, " sergiodj+buildbot
2015-11-17 19:46 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " sergiodj+buildbot
2015-11-17 20:10 ` Failures on Fedora-s390x-m64, " sergiodj+buildbot
2015-11-18  3:40 ` Failures on Debian-i686, " sergiodj+buildbot
2015-11-18  3:54 ` Failures on Debian-i686-native-gdbserver, " sergiodj+buildbot
2015-11-18  4:13 ` Failures on Debian-i686-native-extended-gdbserver, " sergiodj+buildbot
2015-11-18  6:17 ` Failures on Debian-x86_64-native-gdbserver-m64, " sergiodj+buildbot
2015-11-18  6:19 ` Failures on Fedora-ppc64be-native-gdbserver-m64, " sergiodj+buildbot
2015-11-18  6:38 ` Failures on Fedora-ppc64be-native-extended-gdbserver-m64, " sergiodj+buildbot
2015-11-18 11:42 ` Failures on Fedora-ppc64le-native-extended-gdbserver-m64, " sergiodj+buildbot
2015-11-18 12:15 ` Failures on Fedora-ppc64le-native-gdbserver-m64, " sergiodj+buildbot
2015-11-18 12:33 ` Failures on Fedora-ppc64le-m64, " sergiodj+buildbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).