From 037335a7a8203e0edafe636413b92f59717c9d2f Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 17 Dec 2012 11:13:52 +0000 Subject: [PATCH] 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 (, ... This patch fixes this. gdb/gdbserver/ChangeLog: * lynx-low.c (ptrace_request_to_str): Add handling for PTRACE_GETTRACESIG. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/lynx-low.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e841c7811f..31dccbdeb1 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2012-12-17 Joel Brobecker + + * lynx-low.c (ptrace_request_to_str): Add handling for + PTRACE_GETTRACESIG. + 2012-12-17 Joel Brobecker * lynx-low.c (lynx_attach): Delete variable new_process. diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 29f5e6237a..a19530b871 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"; -- 2.34.1