aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-12-08 20:48:17 +0000
committerAndrew Cagney <cagney@redhat.com>2002-12-08 20:48:17 +0000
commit52f87c5112e5e32ac22d3d02b826eed2ec93c147 (patch)
tree37ca8305049a9e8208b5812b818ee6494d92066f /gdb
parent75538612b6dbfde25d55f91e02d9381c8d3360df (diff)
downloadgdb-52f87c5112e5e32ac22d3d02b826eed2ec93c147.zip
gdb-52f87c5112e5e32ac22d3d02b826eed2ec93c147.tar.gz
gdb-52f87c5112e5e32ac22d3d02b826eed2ec93c147.tar.bz2
2002-12-07 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing the format name. (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto. * gdbarch.c: Regenerate.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/gdbarch.c6
-rwxr-xr-xgdb/gdbarch.sh6
3 files changed, 13 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index efd95fa..720bd49 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2002-12-07 Andrew Cagney <ac131313@redhat.com>
+
+ * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
+ the format name.
+ (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
+ * gdbarch.c: Regenerate.
+
2002-12-06 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index ef56820..9523abc 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -2335,7 +2335,7 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
XSTRING (TARGET_DOUBLE_FORMAT));
fprintf_unfiltered (file,
"gdbarch_dump: TARGET_DOUBLE_FORMAT = %s\n",
- gdbarch->float_format->name);
+ (TARGET_DOUBLE_FORMAT)->name);
#endif
#ifdef TARGET_FLOAT_BIT
fprintf_unfiltered (file,
@@ -2351,7 +2351,7 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
XSTRING (TARGET_FLOAT_FORMAT));
fprintf_unfiltered (file,
"gdbarch_dump: TARGET_FLOAT_FORMAT = %s\n",
- gdbarch->float_format->name);
+ (TARGET_FLOAT_FORMAT)->name);
#endif
#ifdef TARGET_INT_BIT
fprintf_unfiltered (file,
@@ -2383,7 +2383,7 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
XSTRING (TARGET_LONG_DOUBLE_FORMAT));
fprintf_unfiltered (file,
"gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT = %s\n",
- gdbarch->float_format->name);
+ (TARGET_LONG_DOUBLE_FORMAT)->name);
#endif
#ifdef TARGET_LONG_LONG_BIT
fprintf_unfiltered (file,
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index db07119..d78b835 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -589,9 +589,9 @@ F:2:REG_STRUCT_HAS_ADDR:int:reg_struct_has_addr:int gcc_p, struct type *type:gcc
F:2:SAVE_DUMMY_FRAME_TOS:void:save_dummy_frame_tos:CORE_ADDR sp:sp::0:0
v:2:PARM_BOUNDARY:int:parm_boundary
#
-v:2:TARGET_FLOAT_FORMAT:const struct floatformat *:float_format::::::default_float_format (gdbarch)::%s:gdbarch->float_format->name
-v:2:TARGET_DOUBLE_FORMAT:const struct floatformat *:double_format::::::default_double_format (gdbarch)::%s:gdbarch->float_format->name
-v:2:TARGET_LONG_DOUBLE_FORMAT:const struct floatformat *:long_double_format::::::default_double_format (gdbarch)::%s:gdbarch->float_format->name
+v:2:TARGET_FLOAT_FORMAT:const struct floatformat *:float_format::::::default_float_format (gdbarch)::%s:(TARGET_FLOAT_FORMAT)->name
+v:2:TARGET_DOUBLE_FORMAT:const struct floatformat *:double_format::::::default_double_format (gdbarch)::%s:(TARGET_DOUBLE_FORMAT)->name
+v:2:TARGET_LONG_DOUBLE_FORMAT:const struct floatformat *:long_double_format::::::default_double_format (gdbarch)::%s:(TARGET_LONG_DOUBLE_FORMAT)->name
f:2:CONVERT_FROM_FUNC_PTR_ADDR:CORE_ADDR:convert_from_func_ptr_addr:CORE_ADDR addr:addr:::core_addr_identity::0
# On some machines there are bits in addresses which are not really
# part of the address, but are used by the kernel, the hardware, etc.