lynx-low.c: PTRACE_GETTHREADLIST may not be defined.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 17 Dec 2012 10:51:29 +0000 (10:51 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 17 Dec 2012 10:51:29 +0000 (10:51 +0000)
LynxOS 178 does not define this macro.

gdb/gdbserver/ChangeLog:

        * lynx-low.c (ptrace_request_to_str): Do not handle
        PTRACE_GETTHREADLIST if this macro does not exist.

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

index 35b2c76..33f856a 100644 (file)
@@ -1,3 +1,8 @@
+2012-12-17  Joel Brobecker  <brobecker@adacore.com>
+
+       * lynx-low.c (ptrace_request_to_str): Do not handle
+       PTRACE_GETTHREADLIST if this macro does not exist.
+
 2012-12-15  Yao Qi  <yao@codesourcery.com>
 
        * Makefile.in (OBS): Add notif.o.
index 1a4757e..2f81ee7 100644 (file)
@@ -255,9 +255,11 @@ ptrace_request_to_str (int request)
       case PTRACE_GETLOADINFO:
         return "PTRACE_GETLOADINFO";
         break;
+#ifdef PTRACE_GETTHREADLIST
       case PTRACE_GETTHREADLIST:
         return "PTRACE_GETTHREADLIST";
         break;
+#endif
     }
   return "<unknown-request>";
 }