aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim@kugelworks.com>2010-05-19 14:13:37 +0000
committerMaxim Kuvyrkov <maxim@kugelworks.com>2010-05-19 14:13:37 +0000
commit28d3cf859d41459121c74042aa5dbad3450cafcb (patch)
tree3565af16f35a42e08e660966ee7a12b9bc12b0f3 /gdb
parentfea36a59a1a87dfa973f911f11ab1a43b0f528c0 (diff)
downloadgdb-28d3cf859d41459121c74042aa5dbad3450cafcb.zip
gdb-28d3cf859d41459121c74042aa5dbad3450cafcb.tar.gz
gdb-28d3cf859d41459121c74042aa5dbad3450cafcb.tar.bz2
* linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
doesn't provide PTRACE_GET_THREAD_AREA.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-m68k-low.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 8c81fb0..3a7c2dc 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
+ * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
+ doesn't provide PTRACE_GET_THREAD_AREA.
+
+2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
+
* linux-m68k-low.c: Include <asm/ptrace.h>
(ps_get_thread_area): Implement.
diff --git a/gdb/gdbserver/linux-m68k-low.c b/gdb/gdbserver/linux-m68k-low.c
index 1caac74..ab6adf4 100644
--- a/gdb/gdbserver/linux-m68k-low.c
+++ b/gdb/gdbserver/linux-m68k-low.c
@@ -156,6 +156,7 @@ m68k_breakpoint_at (CORE_ADDR pc)
#include <asm/ptrace.h>
+#ifdef PTRACE_GET_THREAD_AREA
/* Fetch the thread-local storage pointer for libthread_db. */
ps_err_e
@@ -172,6 +173,7 @@ ps_get_thread_area (const struct ps_prochandle *ph,
return PS_OK;
}
+#endif /* PTRACE_GET_THREAD_AREA */
struct linux_target_ops the_low_target = {
init_registers_m68k,