diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-08-02 21:58:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-08-02 21:58:44 +0000 |
commit | 01e1877c5f2029fcbfda32013f7ec9b8490c7779 (patch) | |
tree | 0aade77ffeeee8d6b6fe0573e7a2a13c1b7c9e90 /gdb/findvar.c | |
parent | 73f458fb31b348df77ccd8fb6394847e0619d62d (diff) | |
download | gdb-01e1877c5f2029fcbfda32013f7ec9b8490c7779.zip gdb-01e1877c5f2029fcbfda32013f7ec9b8490c7779.tar.gz gdb-01e1877c5f2029fcbfda32013f7ec9b8490c7779.tar.bz2 |
2004-08-02 Andrew Cagney <cagney@gnu.org>
* regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
DEPRECATED_REGISTER_RAW_SIZE from comments.
* regcache.c (init_regcache_descr, regcache_dump): Do not check or
use DEPRECATED_REGISTER_VIRTUAL_SIZE and
DEPRECATED_REGISTER_RAW_SIZE.
* findvar.c (value_of_register): Simplify by assuming that the
registers raw and virtual sizes are identical.
* regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
comment.
* arch-utils.c (generic_register_size): Simplify by assuming
register_type.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index e4ab862..9c300b4 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -282,18 +282,8 @@ value_of_register (int regnum, struct frame_info *frame) reg_val = allocate_value (register_type (current_gdbarch, regnum)); - /* Convert raw data to virtual format if necessary. */ - - 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 - internal_error (__FILE__, __LINE__, - "Register \"%s\" (%d) has conflicting raw (%d) and virtual (%d) size", - REGISTER_NAME (regnum), - regnum, - DEPRECATED_REGISTER_RAW_SIZE (regnum), - DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum)); + memcpy (VALUE_CONTENTS_RAW (reg_val), raw_buffer, + register_size (current_gdbarch, regnum)); VALUE_LVAL (reg_val) = lval; VALUE_ADDRESS (reg_val) = addr; VALUE_REGNO (reg_val) = regnum; |