[commit] lynx-low.c: PTRACE_GETTHREADLIST may not be defined.
Joel Brobecker
brobecker@adacore.com
Mon Dec 17 10:53:00 GMT 2012
Hello,
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.
Checked in.
---
gdb/gdbserver/lynx-low.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c
index 68a8277..766843b 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 "<unknown-request>";
}
--
1.7.0.4
More information about the Gdb-patches
mailing list