aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2010-09-02 01:19:32 +0000
committerYao Qi <yao@codesourcery.com>2010-09-02 01:19:32 +0000
commitba9b2ec30d6e7ab0ab09d10107b40e0f4071b70f (patch)
tree01904f0696ed779b4cc39417c3ae953e90f3ed8a /gdb/linux-nat.c
parentd3412a50dd2bc08549ff59d68ce85c8056834c77 (diff)
downloadgdb-ba9b2ec30d6e7ab0ab09d10107b40e0f4071b70f.zip
gdb-ba9b2ec30d6e7ab0ab09d10107b40e0f4071b70f.tar.gz
gdb-ba9b2ec30d6e7ab0ab09d10107b40e0f4071b70f.tar.bz2
2010-09-02 Yao Qi <yao@codesourcery.com>
* linux-nat.c (status_to_str): Use WTERMSIG to extract the signal number from a WIFSIGNALED status.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index e50594d..fc9dafe 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -1094,7 +1094,7 @@ status_to_str (int status)
}
else if (WIFSIGNALED (status))
snprintf (buf, sizeof (buf), "%s (terminated)",
- strsignal (WSTOPSIG (status)));
+ strsignal (WTERMSIG (status)));
else
snprintf (buf, sizeof (buf), "%d (exited)", WEXITSTATUS (status));