diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-12-13 23:48:34 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-12-13 23:48:34 +0000 |
commit | ef8570deb02dbc0a0ea8d1e5244f43df2952b4e3 (patch) | |
tree | 54f4076c2e5d377630e92e9c7b75726b9dad2399 /gdb | |
parent | 095978813d0ca7cb0cfa1370b431fb334f268ecc (diff) | |
download | gdb-ef8570deb02dbc0a0ea8d1e5244f43df2952b4e3.zip gdb-ef8570deb02dbc0a0ea8d1e5244f43df2952b4e3.tar.gz gdb-ef8570deb02dbc0a0ea8d1e5244f43df2952b4e3.tar.bz2 |
Return typelength of register virtual type as size.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arch-utils.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 601a84a..4c504ce 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-12-13 Andrew Cagney <ac131313@redhat.com> + + * arch-utils.c (generic_register_virtual_size): Return TYPE_LENGTH + of register's type. + 2001-12-13 Jackie Smith Cashion <jsmith@redhat.com> * cli/cli-script.c (print_command_lines): Remove extra diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 6fac5ea..d01ab69 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -392,7 +392,7 @@ generic_register_raw_size (int regnum) int generic_register_virtual_size (int regnum) { - return REGISTER_VIRTUAL_TYPE (regnum); + return TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (regnum)); } |