aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-12-17 11:13:52 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-12-17 11:13:52 +0000
commit037335a7a8203e0edafe636413b92f59717c9d2f (patch)
treef1b923268c9cab814459057a87b69376c9857d23
parent52d4cbd8055da09b56f655b8f80c3961b5da6d7c (diff)
downloadgdb-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/ChangeLog5
-rw-r--r--gdb/gdbserver/lynx-low.c3
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";