summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-10 02:00:16 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-10 02:00:16 +0000
commit728d8c4e7a4813b6940fb097220710be4d6bde3b (patch)
treec096cf48edfadffa09dbd1df9cd9d795cae1db39 /gdb/arch-utils.h
parent59c813c0c84a2b77d3c60ee8e697b5a9df3a8fa6 (diff)
downloadgdb-728d8c4e7a4813b6940fb097220710be4d6bde3b.tar.gz
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/arch-utils.h')
-rw-r--r--gdb/arch-utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index 7ceb8b70b84..a38272c9099 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -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);