diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-12-11 22:15:55 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-12-11 22:15:55 +0000 |
commit | ce29138a6e7cdb10675c83bd0d16a2ee5078717a (patch) | |
tree | 84cc644535517bc625576eddbc22288429e6cd7c /gdb/arch-utils.c | |
parent | 5ae326fa7049c90412645417e00dfed7325dc279 (diff) | |
download | gdb-ce29138a6e7cdb10675c83bd0d16a2ee5078717a.zip gdb-ce29138a6e7cdb10675c83bd0d16a2ee5078717a.tar.gz gdb-ce29138a6e7cdb10675c83bd0d16a2ee5078717a.tar.bz2 |
2001-12-10 Michael Snyder <msnyder@redhat.com>
* arch-utils.c (generic_register_virtual_size): New function.
* arch-utils.h: Export generic version of register_virtual_size.
* gdbarch.sh (REGISTER_VIRTUAL_SIZE): Use new function as default.
* gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 60c8301..6fac5ea 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -387,6 +387,14 @@ generic_register_raw_size (int regnum) return TARGET_INT_BIT / HOST_CHAR_BIT; } +/* Assume the virtual size corresponds to the virtual type. */ + +int +generic_register_virtual_size (int regnum) +{ + return REGISTER_VIRTUAL_TYPE (regnum); +} + /* Functions to manipulate the endianness of the target. */ |