public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Signal numbers?
@ 2015-11-06 14:46 Juha Aaltonen
  2015-11-24 13:12 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Juha Aaltonen @ 2015-11-06 14:46 UTC (permalink / raw)
  To: gdb-mailing list

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).

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

* Re: Signal numbers?
  2015-11-06 14:46 Signal numbers? Juha Aaltonen
@ 2015-11-24 13:12 ` Pedro Alves
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2015-11-24 13:12 UTC (permalink / raw)
  To: Juha Aaltonen, gdb-mailing list

On 11/06/2015 02:46 PM, Juha Aaltonen wrote:
> I was wondering...
> How can I find out which signal numbers GDB uses for which signals?

As the manual suggests, see src/include/gdb/signals.h, or
rather src/include/gdb/signals.def.

Thanks,
Pedro Alves

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-06 14:46 Signal numbers? Juha Aaltonen
2015-11-24 13:12 ` Pedro Alves

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).