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/regcache.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/regcache.c')
-rw-r--r-- | gdb/regcache.c | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 3720640..dee37c3 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -144,20 +144,6 @@ init_regcache_descr (struct gdbarch *gdbarch) buffer. Ulgh! */ descr->sizeof_raw_registers = descr->sizeof_cooked_registers; - /* Sanity check. Confirm that there is agreement between the - regcache and the target's redundant DEPRECATED_REGISTER_BYTE (new - targets should not even be defining it). */ - for (i = 0; i < descr->nr_cooked_registers; i++) - { - if (DEPRECATED_REGISTER_BYTE_P ()) - gdb_assert (descr->register_offset[i] == DEPRECATED_REGISTER_BYTE (i)); -#if 0 - gdb_assert (descr->sizeof_register[i] == DEPRECATED_REGISTER_RAW_SIZE (i)); - gdb_assert (descr->sizeof_register[i] == DEPRECATED_REGISTER_VIRTUAL_SIZE (i)); -#endif - } - /* gdb_assert (descr->sizeof_raw_registers == DEPRECATED_REGISTER_BYTES (i)); */ - return descr; } @@ -1311,25 +1297,8 @@ regcache_dump (struct regcache *regcache, struct ui_file *file, if (regnum < 0) fprintf_unfiltered (file, " %5s ", "Size"); else - { - fprintf_unfiltered (file, " %5ld", - regcache->descr->sizeof_register[regnum]); - if ((regcache->descr->sizeof_register[regnum] - != DEPRECATED_REGISTER_RAW_SIZE (regnum)) - || (regcache->descr->sizeof_register[regnum] - != DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum)) - || (regcache->descr->sizeof_register[regnum] - != TYPE_LENGTH (register_type (regcache->descr->gdbarch, - regnum))) - ) - { - if (!footnote_register_size) - footnote_register_size = ++footnote_nr; - fprintf_unfiltered (file, "*%d", footnote_register_size); - } - else - fprintf_unfiltered (file, " "); - } + fprintf_unfiltered (file, " %5ld", + regcache->descr->sizeof_register[regnum]); /* Type. */ { @@ -1373,7 +1342,7 @@ regcache_dump (struct regcache *regcache, struct ui_file *file, regcache_raw_read (regcache, regnum, buf); fprintf_unfiltered (file, "0x"); dump_endian_bytes (file, TARGET_BYTE_ORDER, buf, - DEPRECATED_REGISTER_RAW_SIZE (regnum)); + regcache->descr->sizeof_register[regnum]); } } @@ -1387,7 +1356,7 @@ regcache_dump (struct regcache *regcache, struct ui_file *file, regcache_cooked_read (regcache, regnum, buf); fprintf_unfiltered (file, "0x"); dump_endian_bytes (file, TARGET_BYTE_ORDER, buf, - DEPRECATED_REGISTER_VIRTUAL_SIZE (regnum)); + regcache->descr->sizeof_register[regnum]); } } |