diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-08-10 02:00:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-08-10 02:00:16 +0000 |
commit | a7e3c2ad4b6733e3011e00d214ec83139fa3c3d2 (patch) | |
tree | e630433577f79d66d17aaa1e25127cc6b56c6ecb /gdb/gdbarch.h | |
parent | 119d55d8e40fb1ccbd7a92e8c4cd05de0ea2c0c9 (diff) | |
download | gdb-a7e3c2ad4b6733e3011e00d214ec83139fa3c3d2.zip gdb-a7e3c2ad4b6733e3011e00d214ec83139fa3c3d2.tar.gz gdb-a7e3c2ad4b6733e3011e00d214ec83139fa3c3d2.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index 57fb0cf..973f250 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -693,6 +693,11 @@ extern void set_gdbarch_register_bytes (struct gdbarch *gdbarch, int register_by #endif #endif +/* Default (function) for non- multi-arch platforms. */ +#if (!GDB_MULTI_ARCH) && !defined (REGISTER_BYTE) +#define REGISTER_BYTE(reg_nr) (generic_register_byte (reg_nr)) +#endif + typedef int (gdbarch_register_byte_ftype) (int reg_nr); extern int gdbarch_register_byte (struct gdbarch *gdbarch, int reg_nr); extern void set_gdbarch_register_byte (struct gdbarch *gdbarch, gdbarch_register_byte_ftype *register_byte); |