Put solib support in native files, as gdb build will bomb on cross otherwise.
Put longjmp target function in the native .h, since it only works natively.
This commit is contained in:
parent
0911b89ff5
commit
b24bb409e3
2
gnu/dist/toolchain/gdb/config/arm/nbsd.mh
vendored
2
gnu/dist/toolchain/gdb/config/arm/nbsd.mh
vendored
@ -1,5 +1,5 @@
|
||||
# Host ARM running NetBSD
|
||||
XDEPFILES= ser-tcp.o
|
||||
NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o armnbsd-nat.o
|
||||
NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o armnbsd-nat.o solib.o
|
||||
XM_FILE=xm-nbsd.h
|
||||
NAT_FILE=nm-nbsd.h
|
||||
|
2
gnu/dist/toolchain/gdb/config/arm/nbsd.mt
vendored
2
gnu/dist/toolchain/gdb/config/arm/nbsd.mt
vendored
@ -1,3 +1,3 @@
|
||||
# Target: ARM running NetBSD
|
||||
TDEPFILES= arm-tdep.o solib.o
|
||||
TDEPFILES= arm-tdep.o
|
||||
TM_FILE= tm-nbsd.h
|
||||
|
10
gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h
vendored
10
gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h
vendored
@ -34,6 +34,16 @@
|
||||
extern int
|
||||
arm_register_u_addr PARAMS ((int, int));
|
||||
|
||||
/* Figure out where the longjmp will land. Slurp the args out of the stack.
|
||||
We expect the first arg to be a pointer to the jmp_buf structure from which
|
||||
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
|
||||
This routine returns true on success */
|
||||
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
|
||||
/* We'd like the functions for handling 26-bit modes, please. */
|
||||
#define ARM_26BIT_R15
|
||||
|
||||
|
10
gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h
vendored
10
gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h
vendored
@ -39,16 +39,6 @@
|
||||
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \
|
||||
STREQ ((name), "_PROCEDURE_LINKAGE_TABLE_")
|
||||
|
||||
/* Figure out where the longjmp will land. Slurp the args out of the stack.
|
||||
We expect the first arg to be a pointer to the jmp_buf structure from which
|
||||
we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
|
||||
This routine returns true on success */
|
||||
|
||||
extern int
|
||||
get_longjmp_target PARAMS ((CORE_ADDR *));
|
||||
|
||||
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
|
||||
|
||||
/* For compatibility with previous implemenations of GDB on arm/NetBSD,
|
||||
override the default little-endian breakpoint. */
|
||||
#undef ARM_LE_BREAKPOINT
|
||||
|
Loading…
Reference in New Issue
Block a user