summaryrefslogtreecommitdiff
path: root/gdb/armnbsd-tdep.c
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2002-02-19 11:46:21 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2002-02-19 11:46:21 +0000
commitd080dbaf725b079156daca4cb1299c23698c85bd (patch)
tree7f29bb7eaa7d9300573fbc411c0b7848c9eab702 /gdb/armnbsd-tdep.c
parentf88df1dda7f0a952b405b93322c0ad703c82aa14 (diff)
downloadgdb-d080dbaf725b079156daca4cb1299c23698c85bd.tar.gz
* 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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/armnbsd-tdep.c b/gdb/armnbsd-tdep.c
index 291273b1fb8..4a3aeb882f3 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