2002-08-09 Andrew Cagney <cagney@redhat.com>

* regcache.c (regcache_dump): Compare the register offset
with REGISTER_BYTE.
* arch-utils.c (generic_register_byte): New function.
* arch-utils.h (generic_register_byte): Declare.
* gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
* gdbarch.h, gdbarch.c: Regenerate.
This commit is contained in:
Andrew Cagney
2002-08-10 02:00:16 +00:00
parent 119d55d8e4
commit a7e3c2ad4b
7 changed files with 40 additions and 6 deletions

View File

@@ -155,6 +155,9 @@ extern void default_print_float_info (struct gdbarch *gdbarch,
extern int generic_register_size (int regnum);
/* Assume that the world is sane, the registers are all adjacent. */
extern int generic_register_byte (int regnum);
/* Prop up old targets that use various IN_SIGTRAMP() macros. */
extern int legacy_pc_in_sigtramp (CORE_ADDR pc, char *name);