Return typelength of register virtual type as size.
authorAndrew Cagney <cagney@redhat.com>
Thu, 13 Dec 2001 23:48:34 +0000 (23:48 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 13 Dec 2001 23:48:34 +0000 (23:48 +0000)
gdb/ChangeLog
gdb/arch-utils.c

index 601a84ab3f0a89bc5fa5856685513d3ed8fa7ff3..4c504ce61f16b7245137037e915556afc3964037 100644 (file)
@@ -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
index 6fac5ea7b483e6779b70d017ee210f3e7a54d6ea..d01ab69030030c1148d434b67f74230dec0466b1 100644 (file)
@@ -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));
 }
 
 \f