diff options
author | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-19 11:46:21 +0000 |
---|---|---|
committer | Richard Earnshaw <richard.earnshaw@arm.com> | 2002-02-19 11:46:21 +0000 |
commit | 41d39a95af476969be023d4b7e129042c8daf5c8 (patch) | |
tree | 21b1029fb8f2a616646432a530950fdcf07dd1a9 /gdb/armnbsd-tdep.c | |
parent | e1195560f841aed78d151f4a1553a80f453330b0 (diff) | |
download | gdb-41d39a95af476969be023d4b7e129042c8daf5c8.zip gdb-41d39a95af476969be023d4b7e129042c8daf5c8.tar.gz gdb-41d39a95af476969be023d4b7e129042c8daf5c8.tar.bz2 |
* armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
function.
(arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
* config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
defines one thing and that is incorrect for this port.
(IN_SOLIB_CALL_TRAMPOLINE): Delete.
Diffstat (limited to 'gdb/armnbsd-tdep.c')
-rw-r--r-- | gdb/armnbsd-tdep.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/armnbsd-tdep.c b/gdb/armnbsd-tdep.c index 291273b..4a3aeb8 100644 --- a/gdb/armnbsd-tdep.c +++ b/gdb/armnbsd-tdep.c @@ -30,6 +30,15 @@ override the default little-endian breakpoint. */ static const char arm_nbsd_arm_le_breakpoint[] = {0x11, 0x00, 0x00, 0xe6}; +static int +arm_netbsd_aout_in_solib_call_trampoline (CORE_ADDR pc, char *name) +{ + if (strcmp (name, "_PROCEDURE_LINKAGE_TABLE_") == 0) + return 1; + + return 0; +} + static void arm_netbsd_init_abi_common (struct gdbarch_info info, struct gdbarch *gdbarch) @@ -49,6 +58,9 @@ arm_netbsd_aout_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { arm_netbsd_init_abi_common (info, gdbarch); + + set_gdbarch_in_solib_call_trampoline + (gdbarch, arm_netbsd_aout_in_solib_call_trampoline); } static void |