This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] lynx-low.c: PTRACE_GETTHREADLIST may not be defined.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Mon, 17 Dec 2012 05:53:33 -0500
- Subject: [commit] lynx-low.c: PTRACE_GETTHREADLIST may not be defined.
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