This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Signal numbers?
- From: Juha Aaltonen <turbopultti at gmail dot com>
- To: gdb-mailing list <gdb at sourceware dot org>
- Date: Fri, 6 Nov 2015 16:46:45 +0200
- Subject: Signal numbers?
- Authentication-results: sourceware.org; auth=none
I was wondering...
How can I find out which signal numbers GDB uses for which signals?
I got my bare metal "kind of gdb server/stub" working, but I wish I
could give some reasonable signal numbers in the stop-messages.
It's not nice if stop due to a breakpoint is reported to user as
"SIGPIPE" by the gdb. ;-)
I thought I sent SIGUSR2 (signal 12) when the debuggee stopped at
breakpoint in the program code (not one of debugger's) and GDB
notified: "Program received signal SIGTSTP, Stopped (user)."
Also signal 7 seems to come out as SIGEMT instead of SIGBUS
(prefetch/data aborts).