From: Joel Brobecker Date: Mon, 17 Dec 2012 11:13:52 +0000 (+0000) Subject: Add PTRACE_GETTRACESIG handling in ptrace_request_to_str X-Git-Tag: cgen-snapshot-20130101~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=037335a7a8203e0edafe636413b92f59717c9d2f;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e841c7811f5..31dccbdeb19 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 29f5e6237a2..a19530b871c 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";