aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-linux-tdep.c
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2003-03-22 20:39:21 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2003-03-22 20:39:21 +0000
commitfd50bc42f4703d05287bf0daca15cc641a687e17 (patch)
tree65b6e18a6ec98af185e05971f3dd165f119037d4 /gdb/arm-linux-tdep.c
parent067186e45fd37836d3aa611637c33cdb51395fab (diff)
downloadfsf-binutils-gdb-fd50bc42f4703d05287bf0daca15cc641a687e17.zip
fsf-binutils-gdb-fd50bc42f4703d05287bf0daca15cc641a687e17.tar.gz
fsf-binutils-gdb-fd50bc42f4703d05287bf0daca15cc641a687e17.tar.bz2
* arm-tdep.h (arm_float_model): Add AUTO and LAST values.
(arm_get_fp_model): Declare. * arm-tdep.c (fp_model_strings): New string array. (arm_fp_model, current_fp_model): New variables. (arm_get_fp_model): New function. (arm_set_fp): New function. (set_fp_model_sfunc): New function. (show_fp_model): New function. (_initialize_arm_tdep): Add new command to set/show the FPU. (arm_extract_return_value): Use arm_get_fp_model. (arm_store_return_value): Likewise. (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp to initialize the floating-point data types. * arm-linux-tdep.c (arm_linux_init_abi): The default floating point model is FPA.
Diffstat (limited to 'gdb/arm-linux-tdep.c')
-rw-r--r--gdb/arm-linux-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c
index 1ebe600..01b45f1 100644
--- a/gdb/arm-linux-tdep.c
+++ b/gdb/arm-linux-tdep.c
@@ -525,6 +525,8 @@ arm_linux_init_abi (struct gdbarch_info info,
tdep->arm_breakpoint = arm_linux_arm_le_breakpoint;
tdep->arm_breakpoint_size = sizeof (arm_linux_arm_le_breakpoint);
+ tdep->fp_model = ARM_FLOAT_FPA;
+
tdep->jb_pc = ARM_LINUX_JB_PC;
tdep->jb_elt_size = ARM_LINUX_JB_ELEMENT_SIZE;