diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-12-17 11:13:52 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-12-17 11:13:52 +0000 |
commit | 037335a7a8203e0edafe636413b92f59717c9d2f (patch) | |
tree | f1b923268c9cab814459057a87b69376c9857d23 | |
parent | 52d4cbd8055da09b56f655b8f80c3961b5da6d7c (diff) | |
download | gdb-037335a7a8203e0edafe636413b92f59717c9d2f.zip gdb-037335a7a8203e0edafe636413b92f59717c9d2f.tar.gz gdb-037335a7a8203e0edafe636413b92f59717c9d2f.tar.bz2 |
Add PTRACE_GETTRACESIG handling in ptrace_request_to_str
We use this ptrace request when handling SIGTRAP signals,
and without this change, the debug trances show:
PTRACE (<unknown-request>, ...
This patch fixes this.
gdb/gdbserver/ChangeLog:
* lynx-low.c (ptrace_request_to_str): Add handling for
PTRACE_GETTRACESIG.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/lynx-low.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e841c78..31dccbd 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 2012-12-17 Joel Brobecker <brobecker@adacore.com> + * lynx-low.c (ptrace_request_to_str): Add handling for + PTRACE_GETTRACESIG. + +2012-12-17 Joel Brobecker <brobecker@adacore.com> + * lynx-low.c (lynx_attach): Delete variable new_process. 2012-12-17 Joel Brobecker <brobecker@adacore.com> diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 29f5e62..a19530b 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -255,6 +255,9 @@ ptrace_request_to_str (int request) case PTRACE_GETLOADINFO: return "PTRACE_GETLOADINFO"; break; + case PTRACE_GETTRACESIG: + return "PTRACE_GETTRACESIG"; + break; #ifdef PTRACE_GETTHREADLIST case PTRACE_GETTHREADLIST: return "PTRACE_GETTHREADLIST"; |