]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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 35b2c764daede26a1e0fac6ac2af3d003b445ddd..33f856a6820e7de7527443a5c935d654ef0419d6 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 1a4757e1c34f7684e958f480805ad96b7a86f767..2f81ee7b8611a7d2832d8f3e4b54538cd908ea37 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>";
 }