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.
This commit is contained in:
Yao Qi 2010-09-02 01:19:32 +00:00
parent d3412a50dd
commit ba9b2ec30d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2010-09-01 Tom Tromey <tromey@redhat.com>
* symtab.h (lookup_type_symbol): Declare.

View File

@ -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));