diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-09 20:42:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-09 20:42:29 +0000 |
commit | 9730f241234216351ad23212d0a3f17cfc61a287 (patch) | |
tree | 2dab9e5d74de95feb2942debfe3bf1c09fa42604 /gdb/findvar.c | |
parent | 8a1bf479ce96c531ca840cb7bb8434cb413bf72e (diff) | |
download | gdb-9730f241234216351ad23212d0a3f17cfc61a287.zip gdb-9730f241234216351ad23212d0a3f17cfc61a287.tar.gz gdb-9730f241234216351ad23212d0a3f17cfc61a287.tar.bz2 |
2004-06-09 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
(DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
(DEPRECATED_REGISTER_CONVERTIBLE): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* infcmd.c (default_print_registers_info): Simplify.
* findvar.c (value_of_register): Simplify.
* mi/mi-main.c (get_register): Simplify.
* arch-utils.c (legacy_convert_register_p): Always return 0.
(legacy_register_to_value, legacy_value_to_register): Always call
internal_error.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index cb1ef65..e4ab862 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -284,13 +284,7 @@ value_of_register (int regnum, struct frame_info *frame) /* Convert raw data to virtual format if necessary. */ - if (DEPRECATED_REGISTER_CONVERTIBLE_P () - && DEPRECATED_REGISTER_CONVERTIBLE (regnum)) - { - DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL (regnum, register_type (current_gdbarch, regnum), - raw_buffer, VALUE_CONTENTS_RAW (reg_val)); - } - else if (DEPRECATED_REGISTER_RAW_SIZE (regnum) == DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum)) + if (DEPRECATED_REGISTER_RAW_SIZE (regnum) == DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum)) memcpy (VALUE_CONTENTS_RAW (reg_val), raw_buffer, DEPRECATED_REGISTER_RAW_SIZE (regnum)); else |