From f09cffaa4a5d50a98e6da686ec1f801cfaca76dd Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 27 Nov 2002 15:50:32 +0000 Subject: [PATCH] 2002-11-26 Andrew Cagney * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name. (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto. * gdbarch.c: Re-generate. --- gdb/ChangeLog | 6 ++++++ gdb/gdbarch.c | 12 ++++++------ gdb/gdbarch.sh | 6 +++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7989b656957..c65dfe7427f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-11-26 Andrew Cagney + + * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name. + (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto. + * gdbarch.c: Re-generate. + 2002-11-26 Andrew Cagney * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK. diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 71cf79815d3..5b4ff7bc749 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -2132,8 +2132,8 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: TARGET_DOUBLE_FORMAT # %s\n", XSTRING (TARGET_DOUBLE_FORMAT)); fprintf_unfiltered (file, - "gdbarch_dump: TARGET_DOUBLE_FORMAT = %ld\n", - (long) TARGET_DOUBLE_FORMAT); + "gdbarch_dump: TARGET_DOUBLE_FORMAT = %s\n", + gdbarch->float_format->name); #endif #ifdef TARGET_FLOAT_BIT fprintf_unfiltered (file, @@ -2148,8 +2148,8 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: TARGET_FLOAT_FORMAT # %s\n", XSTRING (TARGET_FLOAT_FORMAT)); fprintf_unfiltered (file, - "gdbarch_dump: TARGET_FLOAT_FORMAT = %ld\n", - (long) TARGET_FLOAT_FORMAT); + "gdbarch_dump: TARGET_FLOAT_FORMAT = %s\n", + gdbarch->float_format->name); #endif #ifdef TARGET_INT_BIT fprintf_unfiltered (file, @@ -2180,8 +2180,8 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) "gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT # %s\n", XSTRING (TARGET_LONG_DOUBLE_FORMAT)); fprintf_unfiltered (file, - "gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT = %ld\n", - (long) TARGET_LONG_DOUBLE_FORMAT); + "gdbarch_dump: TARGET_LONG_DOUBLE_FORMAT = %s\n", + gdbarch->float_format->name); #endif #ifdef TARGET_LONG_LONG_BIT fprintf_unfiltered (file, diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index bb6d400270a..2f014773210 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -578,9 +578,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) -v:2:TARGET_DOUBLE_FORMAT:const struct floatformat *:double_format::::::default_double_format (gdbarch) -v:2:TARGET_LONG_DOUBLE_FORMAT:const struct floatformat *:long_double_format::::::default_double_format (gdbarch) +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 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. -- 2.30.2