From 58e2696d70e260d5871516f6ecc255099d46bafe Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 13 Dec 2001 23:48:34 +0000 Subject: [PATCH] Return typelength of register virtual type as size. --- gdb/ChangeLog | 5 +++++ gdb/arch-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 601a84ab3f..4c504ce61f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-12-13 Andrew Cagney + + * arch-utils.c (generic_register_virtual_size): Return TYPE_LENGTH + of register's type. + 2001-12-13 Jackie Smith Cashion * cli/cli-script.c (print_command_lines): Remove extra diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 6fac5ea7b4..d01ab69030 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)); } -- 2.11.0