* linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
authorMaxim Kuvyrkov <maxim@kugelworks.com>
Wed, 19 May 2010 14:13:37 +0000 (14:13 +0000)
committerMaxim Kuvyrkov <maxim@kugelworks.com>
Wed, 19 May 2010 14:13:37 +0000 (14:13 +0000)
doesn't provide PTRACE_GET_THREAD_AREA.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-m68k-low.c

index 8c81fb01e0f7b9cef28b864256774cd4603b3842..3a7c2dc760f8e089150e649fdcf464aa3305768f 100644 (file)
@@ -1,3 +1,8 @@
+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>
index 1caac741a81c2c148741d03fb7baecb9a77ae073..ab6adf43ccd14ab4da179e6f58566114d5d017f4 100644 (file)
@@ -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,