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.
This commit is contained in:
Joel Brobecker 2012-12-17 11:13:52 +00:00
parent 52d4cbd805
commit 037335a7a8
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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";