mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-15 00:00:20 +00:00
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:
parent
d3412a50dd
commit
ba9b2ec30d
@ -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.
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user