Add PTRACE_GETTRACESIG handling in ptrace_request_to_str
authorJoel Brobecker <brobecker@gnat.com>
Mon, 17 Dec 2012 11:13:52 +0000 (11:13 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 17 Dec 2012 11:13:52 +0000 (11:13 +0000)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/lynx-low.c

index e841c7811f5b4001b0df9c002154ffe30ff8b805..31dccbdeb199d62c15ef451a0377a8390becc255 100644 (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.
index 29f5e6237a2228bf675e4dbbc7c48b3f3ba5977b..a19530b871caf8ab14c210921e208a40591d4a5d 100644 (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";
This page took 0.030643 seconds and 4 git commands to generate.