Date: Sat, 26 Mar 2011 21:12:53 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r220043 - head/gnu/usr.bin/gdb/libgdb Message-ID: <201103262112.p2QLCrQl036308@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Mar 26 21:12:53 2011 New Revision: 220043 URL: http://svn.freebsd.org/changeset/base/220043 Log: Print the raw value of si_code, that is esp. useful for undecoded values. Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/gnu/usr.bin/gdb/libgdb/fbsd-threads.c Modified: head/gnu/usr.bin/gdb/libgdb/fbsd-threads.c ============================================================================== --- head/gnu/usr.bin/gdb/libgdb/fbsd-threads.c Sat Mar 26 20:40:33 2011 (r220042) +++ head/gnu/usr.bin/gdb/libgdb/fbsd-threads.c Sat Mar 26 21:12:53 2011 (r220043) @@ -1393,9 +1393,10 @@ fbsd_thread_signal_cmd (char *exp, int f 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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103262112.p2QLCrQl036308>