From b24bb409e3fea0e22bf65c1cbe73646eb80935ec Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 15 Nov 2001 00:58:29 +0000 Subject: 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. --- gnu/dist/toolchain/gdb/config/arm/nbsd.mh | 2 +- gnu/dist/toolchain/gdb/config/arm/nbsd.mt | 2 +- gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h | 10 ++++++++++ gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h | 10 ---------- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'gnu') diff --git a/gnu/dist/toolchain/gdb/config/arm/nbsd.mh b/gnu/dist/toolchain/gdb/config/arm/nbsd.mh index 2130d9db661..d7a67e71586 100644 --- a/gnu/dist/toolchain/gdb/config/arm/nbsd.mh +++ b/gnu/dist/toolchain/gdb/config/arm/nbsd.mh @@ -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 diff --git a/gnu/dist/toolchain/gdb/config/arm/nbsd.mt b/gnu/dist/toolchain/gdb/config/arm/nbsd.mt index 07fda937422..2fff22ffcdd 100644 --- a/gnu/dist/toolchain/gdb/config/arm/nbsd.mt +++ b/gnu/dist/toolchain/gdb/config/arm/nbsd.mt @@ -1,3 +1,3 @@ # Target: ARM running NetBSD -TDEPFILES= arm-tdep.o solib.o +TDEPFILES= arm-tdep.o TM_FILE= tm-nbsd.h diff --git a/gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h b/gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h index 4734f97c509..7553a456038 100644 --- a/gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h +++ b/gnu/dist/toolchain/gdb/config/arm/nm-nbsd.h @@ -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 diff --git a/gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h b/gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h index d9b84b46ab7..8062578b6bb 100644 --- a/gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h +++ b/gnu/dist/toolchain/gdb/config/arm/tm-nbsd.h @@ -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 -- cgit