aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Earnshaw <richard.earnshaw@arm.com>2002-02-18 15:04:19 +0000
committerRichard Earnshaw <richard.earnshaw@arm.com>2002-02-18 15:04:19 +0000
commitd7afb4c98305d918f9d0dca55b0faa89f982b320 (patch)
treec5c7b8447f9f76d894752ca38fbfffbc9a0c552a
parent9df628e0aa21fe96d386e6a634d0af30d9b2efb7 (diff)
downloadgdb-d7afb4c98305d918f9d0dca55b0faa89f982b320.zip
gdb-d7afb4c98305d918f9d0dca55b0faa89f982b320.tar.gz
gdb-d7afb4c98305d918f9d0dca55b0faa89f982b320.tar.bz2
* arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
* config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/arm-tdep.c12
-rw-r--r--gdb/config/arm/tm-arm.h2
3 files changed, 12 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a415c6b..c527976 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2002-02-18 Richard Earnshaw <rearnsha@arm.com>
+ * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
+ * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
+
+2002-02-18 Richard Earnshaw <rearnsha@arm.com>
+
* gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
* gdbarch.c gdbarch.h: Regenerate.
* breakpoint.c (create_longjmp_breakpoint): Always compile this
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 7f20267..806cd08 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -2521,7 +2521,7 @@ process_note_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
{
int os_number = bfd_h_get_32 (abfd, note + 16);
- /* The case numbers are from abi-tags in glibc */
+ /* The case numbers are from abi-tags in glibc. */
switch (os_number)
{
case 0 :
@@ -2579,7 +2579,7 @@ process_note_abi_tag_sections (bfd *abfd, asection *sect, void *obj)
/* Return one of the ELFOSABI_ constants for BFDs representing ELF
executables. If it's not an ELF executable or if the OS/ABI couldn't
- be determined, simply return -1. */
+ be determined, simply return -1. */
static int
get_elfosabi (bfd *abfd)
@@ -2595,7 +2595,7 @@ get_elfosabi (bfd *abfd)
have to check the note sections too.
GNU/ARM tools set the EI_OSABI field to ELFOSABI_ARM, so handle that
- as well.*/
+ as well. */
if (elfosabi == 0 || elfosabi == ELFOSABI_ARM)
{
bfd_map_over_sections (abfd,
@@ -2694,7 +2694,7 @@ arm_gdbarch_register_os_abi (enum arm_abi abi,
during this debugging session.
Called e.g. at program startup, when reading a core file, and when reading
- a binary file. */
+ a binary file. */
static struct gdbarch *
arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
@@ -2734,7 +2734,7 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
}
}
- /* Find a candidate among extant architectures. */
+ /* Find a candidate among extant architectures. */
for (arches = gdbarch_list_lookup_by_info (arches, &info);
arches != NULL;
arches = gdbarch_list_lookup_by_info (arches->next, &info))
@@ -2814,6 +2814,8 @@ arm_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_get_saved_register (gdbarch, generic_get_saved_register);
set_gdbarch_push_arguments (gdbarch, arm_push_arguments);
+ set_gdbarch_coerce_float_to_double (gdbarch,
+ standard_coerce_float_to_double);
/* Frame handling. */
set_gdbarch_frame_chain_valid (gdbarch, arm_frame_chain_valid);
diff --git a/gdb/config/arm/tm-arm.h b/gdb/config/arm/tm-arm.h
index 6f48b60b..79a57cf 100644
--- a/gdb/config/arm/tm-arm.h
+++ b/gdb/config/arm/tm-arm.h
@@ -35,6 +35,4 @@
#define CALL_DUMMY_BREAKPOINT_OFFSET arm_call_dummy_breakpoint_offset()
extern int arm_call_dummy_breakpoint_offset (void);
-#define COERCE_FLOAT_TO_DOUBLE(formal, actual) (standard_coerce_float_to_double (formal, actual))
-
#endif /* TM_ARM_H */