diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-05-12 02:16:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-05-12 02:16:05 +0000 |
commit | 308c45c20e8c8faaba6fca5d78c68dfb361d9112 (patch) | |
tree | 42fe367dd6065ec1f8dea7b5cf0bd29fa3422c5c /gdb/arch-utils.h | |
parent | 944ab9fb7a74fe8eb7909146bf3a0c9beb527540 (diff) | |
download | gdb-308c45c20e8c8faaba6fca5d78c68dfb361d9112.tar.gz |
* arch-utils.h (generic_register_size): Declare.
(generic_register_raw_size, generic_register_virtual_size): Delete
declarations.
* arch-utils.c (generic_register_raw_size): Delete.
(generic_register_size): New function.
(generic_register_virtual_size): Delete.
* gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
default generic_register_size.
* gdbarch.h, gdbarch.c: Re-generate.
* d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
register_virtual_size.
* x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
* rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
* gdbint.texinfo (Target Architecture Definition): Mention
defaults for REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE.
(Target Architecture Definition): Mention same. Add references to
web pages.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r-- | gdb/arch-utils.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h index 72200626a61..bcd17aaf713 100644 --- a/gdb/arch-utils.h +++ b/gdb/arch-utils.h @@ -149,13 +149,10 @@ extern int generic_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc extern void default_print_float_info (void); -/* Assume all registers are the same size and a size identical to that - of the integer type. */ -extern int generic_register_raw_size (int regnum); +/* Assume that the world is sane, a registers raw and virtual size + both match its type. */ -/* Assume the virtual size of registers corresponds to the virtual type. */ - -extern int generic_register_virtual_size (int regnum); +extern int generic_register_size (int regnum); /* Prop up old targets that use various IN_SIGTRAMP() macros. */ extern int legacy_pc_in_sigtramp (CORE_ADDR pc, char *name); |