aboutsummaryrefslogtreecommitdiff
path: root/gdb/armnbsd-tdep.c
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2002-02-19 19:20:31 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2002-02-19 19:20:31 +0000
commit08216dd78d5f1a8976771db9ca7008126ccf3ece (patch)
tree0253edbebb9cb566b8b3d01048abc00bd110ab13 /gdb/armnbsd-tdep.c
parent45b38a80ad9d75ed57daa8dfa569583ead481d03 (diff)
downloadgdb-08216dd78d5f1a8976771db9ca7008126ccf3ece.zip
gdb-08216dd78d5f1a8976771db9ca7008126ccf3ece.tar.gz
gdb-08216dd78d5f1a8976771db9ca7008126ccf3ece.tar.bz2
* arm-tdep.h (enum arm_float_model): New enum.
(struct gdbarch_tdep): Add fp_model. * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting up floating-point conversions until we know the floating-point model in use by the inferior. Don't complain about being unable to determine the ABI of the inferior when we don't have one. (arm_extract_return_value): Support different floating-point models. (arm_store_return_value): Likewise. * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to ARM_FLOAT_SOFT. (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
Diffstat (limited to 'gdb/armnbsd-tdep.c')
-rw-r--r--gdb/armnbsd-tdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/armnbsd-tdep.c b/gdb/armnbsd-tdep.c
index 4a3aeb8..7f6e639 100644
--- a/gdb/armnbsd-tdep.c
+++ b/gdb/armnbsd-tdep.c
@@ -57,17 +57,24 @@ static void
arm_netbsd_aout_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+
arm_netbsd_init_abi_common (info, gdbarch);
set_gdbarch_in_solib_call_trampoline
(gdbarch, arm_netbsd_aout_in_solib_call_trampoline);
+ tdep->fp_model = ARM_FLOAT_SOFT;
}
static void
arm_netbsd_elf_init_abi (struct gdbarch_info info,
struct gdbarch *gdbarch)
{
+ struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
+
arm_netbsd_init_abi_common (info, gdbarch);
+
+ tdep->fp_model = ARM_FLOAT_SOFT_VFP;
}
void