From 78cbc0240c66d43cad111ad577f6b654f92cec37 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 17 Dec 2012 10:51:29 +0000 Subject: [PATCH] lynx-low.c: PTRACE_GETTHREADLIST may not be defined. 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 | 5 +++++ gdb/gdbserver/lynx-low.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 35b2c764dae..33f856a6820 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): Do not handle + PTRACE_GETTHREADLIST if this macro does not exist. + 2012-12-15 Yao Qi * Makefile.in (OBS): Add notif.o. diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c index 1a4757e1c34..2f81ee7b861 100644 --- a/gdb/gdbserver/lynx-low.c +++ b/gdb/gdbserver/lynx-low.c @@ -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 ""; }