mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
* linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
doesn't provide PTRACE_GET_THREAD_AREA.
This commit is contained in:
parent
fea36a59a1
commit
28d3cf859d
@ -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>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user