From: Yao Qi Date: Thu, 2 Sep 2010 01:19:32 +0000 (+0000) Subject: 2010-09-02 Yao Qi X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba9b2ec30d6e7ab0ab09d10107b40e0f4071b70f;p=binutils-gdb.git 2010-09-02 Yao Qi * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal number from a WIFSIGNALED status. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 93eeac18556..87b3977925e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-09-02 Yao Qi + + * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal + number from a WIFSIGNALED status. + 2010-09-01 Tom Tromey * symtab.h (lookup_type_symbol): Declare. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index e50594d125c..fc9dafec21d 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));