aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2009-09-28 18:39:29 +0000
committerDoug Evans <dje@google.com>2009-09-28 18:39:29 +0000
commit206aa7673dee72df37107f9fd05c179f13ac1442 (patch)
treed52bff85ae063448b8cec5ef9fcddb98602f13b7 /gdb/linux-nat.c
parent52fbfb5d6354b07f78b6ea3063c9315a0dcb8eed (diff)
downloadgdb-206aa7673dee72df37107f9fd05c179f13ac1442.zip
gdb-206aa7673dee72df37107f9fd05c179f13ac1442.tar.gz
gdb-206aa7673dee72df37107f9fd05c179f13ac1442.tar.bz2
* linux-nat.c (status_to_str): Handle TRAP_IS_SYSCALL.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 98f6347..48affdb 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)));