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/arch-utils.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/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index d7bbe6c..abebf55 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -289,13 +289,7 @@ int generic_register_size (int regnum) { gdb_assert (regnum >= 0 && regnum < NUM_REGS + NUM_PSEUDO_REGS); - if (gdbarch_register_type_p (current_gdbarch)) - return TYPE_LENGTH (gdbarch_register_type (current_gdbarch, regnum)); - else - /* FIXME: cagney/2003-03-01: Once all architectures implement - gdbarch_register_type(), this entire function can go away. It - is made obsolete by register_size(). */ - return TYPE_LENGTH (DEPRECATED_REGISTER_VIRTUAL_TYPE (regnum)); /* OK */ + return TYPE_LENGTH (gdbarch_register_type (current_gdbarch, regnum)); } /* Assume all registers are adjacent. */ |