diff options
author | kib <kib@FreeBSD.org> | 2011-03-26 21:12:53 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-03-26 21:12:53 +0000 |
commit | 59f8f1111b705469135b2c909b1ff58bd73c8142 (patch) | |
tree | 1b45b582e81e2c0a18567671493808ef2953e78b /gnu/usr.bin/gdb | |
parent | 411b69f8a0c7f611e022e0e30a5a4bf4645c6d80 (diff) | |
download | FreeBSD-src-59f8f1111b705469135b2c909b1ff58bd73c8142.zip FreeBSD-src-59f8f1111b705469135b2c909b1ff58bd73c8142.tar.gz |
Print the raw value of si_code, that is esp. useful for undecoded values.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'gnu/usr.bin/gdb')
-rw-r--r-- | gnu/usr.bin/gdb/libgdb/fbsd-threads.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c index 605efe6..5733e40 100644 --- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c +++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c @@ -1393,9 +1393,10 @@ fbsd_thread_signal_cmd (char *exp, int from_tty) code = "UNKNOWN"; break; } - printf_filtered("si_code %s si_pid %d si_uid %d si_status %x si_addr %p\n", - code, ti.ti_siginfo.si_pid, ti.ti_siginfo.si_uid, ti.ti_siginfo.si_status, - ti.ti_siginfo.si_addr); + printf_filtered("si_code %s (%d) si_pid %d si_uid %d si_status %x " + "si_addr %p\n", + code, ti.ti_siginfo.si_code, ti.ti_siginfo.si_pid, ti.ti_siginfo.si_uid, + ti.ti_siginfo.si_status, ti.ti_siginfo.si_addr); } } |