diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-06-03 01:24:42 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-06-03 01:24:42 +0000 |
commit | bf7488d21d019839fe53175af8cc35cb0f44e6a0 (patch) | |
tree | dff2a85128e668a511f55f39ee2b197ce1322bf0 /gdb/sparc-tdep.c | |
parent | 74945e6a88272ae5fd66beaf78a7d71963686b47 (diff) | |
download | gdb-bf7488d21d019839fe53175af8cc35cb0f44e6a0.zip gdb-bf7488d21d019839fe53175af8cc35cb0f44e6a0.tar.gz gdb-bf7488d21d019839fe53175af8cc35cb0f44e6a0.tar.bz2 |
2003-06-02 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c (alpha_gdbarch_init): Set convert_register_p,
register_to_value, and value_to_register, instead of
register_convertible, register_convert_to_raw, and
register_convert_to_virtual.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* ia64-tdep.c (ia64_gdbarch_init): Ditto.
* i386-tdep.c (i386_gdbarch_init): Ditto.
* sparc-tdep.c (sparc_print_registers): Delete call to
REGISTER_CONVERTIBLE.
(sparc_gdbarch_init): Do not set register_convertible.
* m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
* frv-tdep.c (frv_gdbarch_init): Ditto.
* cris-tdep.c (cris_gdbarch_init): Ditto.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r-- | gdb/sparc-tdep.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index c3fd6dd..e2db956 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -2104,20 +2104,7 @@ sparc_print_registers (struct gdbarch *gdbarch, continue; } - /* FIXME: cagney/2002-08-03: This code shouldn't be necessary. - The function frame_register_read() should have returned the - pre-cooked register so no conversion is necessary. */ - /* Convert raw data to virtual format if necessary. */ - if (REGISTER_CONVERTIBLE (i)) - { - REGISTER_CONVERT_TO_VIRTUAL (i, REGISTER_VIRTUAL_TYPE (i), - raw_buffer, virtual_buffer); - } - else - { - memcpy (virtual_buffer, raw_buffer, - REGISTER_VIRTUAL_SIZE (i)); - } + memcpy (virtual_buffer, raw_buffer, REGISTER_VIRTUAL_SIZE (i)); /* If virtual format is floating, print it that way, and in raw hex. */ @@ -3351,8 +3338,6 @@ sparc_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_register_convert_to_raw (gdbarch, sparc_convert_to_raw); set_gdbarch_register_convert_to_virtual (gdbarch, sparc_convert_to_virtual); - set_gdbarch_register_convertible (gdbarch, - generic_register_convertible_not); set_gdbarch_reg_struct_has_addr (gdbarch, sparc_reg_struct_has_addr); set_gdbarch_return_value_on_stack (gdbarch, sparc_return_value_on_stack); set_gdbarch_deprecated_saved_pc_after_call (gdbarch, sparc_saved_pc_after_call); |