From: Doug Evans Date: Mon, 28 Sep 2009 18:39:29 +0000 (+0000) Subject: * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=206aa7673dee72df37107f9fd05c179f13ac1442;p=binutils-gdb.git * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index defd90ef498..347582829d1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-09-28 Doug Evans + + * linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL. + 2009-09-28 Ulrich Weigand * valops.c (value_assign): Respect parent offset when diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 98f6347fc9c..48affdb1ffe 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -980,8 +980,14 @@ status_to_str (int status) static char buf[64]; if (WIFSTOPPED (status)) - snprintf (buf, sizeof (buf), "%s (stopped)", - strsignal (WSTOPSIG (status))); + { + if (WSTOPSIG (status) == TRAP_IS_SYSCALL) + snprintf (buf, sizeof (buf), "%s (stopped at syscall)", + strsignal (SIGTRAP)); + else + snprintf (buf, sizeof (buf), "%s (stopped)", + strsignal (WSTOPSIG (status))); + } else if (WIFSIGNALED (status)) snprintf (buf, sizeof (buf), "%s (terminated)", strsignal (WSTOPSIG (status)));