aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-05-29 16:39:56 +0000
committerAndrew Cagney <cagney@redhat.com>2002-05-29 16:39:56 +0000
commit4182591fce9f672b648e8dcfcf33d0df556b7a22 (patch)
tree64dae6ebd895f6ced1abeb24af7e27870d546c54 /gdb/arch-utils.h
parent8afb0e028ca79a7b870a0293c8e584529adfbe9f (diff)
downloadgdb-4182591fce9f672b648e8dcfcf33d0df556b7a22.zip
gdb-4182591fce9f672b648e8dcfcf33d0df556b7a22.tar.gz
gdb-4182591fce9f672b648e8dcfcf33d0df556b7a22.tar.bz2
* Makefile.in (arch-utils.o): Add $(sim_regno_h).
* arch-utils.c: Include "sim-regno.h". * gdbarch.sh: Don't include "sim-regno.h". * gdbarch.h, gdbarch.c: Regenerate. * sim-regno.h (legacy_register_sim_regno): Move declaration from here. * arch-utils.h (legacy_register_sim_regno): To here. * remote-sim.c (legacy_register_sim_regno): Move function from here. * arch-utils.c (legacy_register_sim_regno): To here.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r--gdb/arch-utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index f4b2d02..3b3e615 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -161,6 +161,12 @@ extern int legacy_convert_register_p (int regnum);
extern void legacy_register_to_value (int regnum, struct type *type, char *from, char *to);
extern void legacy_value_to_register (struct type *type, int regnum, char *from, char *to);
+/* For compatibility with older architectures, returns
+ (LEGACY_SIM_REGNO_IGNORE) when the register doesn't have a valid
+ name. */
+
+extern int legacy_register_sim_regno (int regnum);
+
/* Initialize a ``struct info''. Can't use memset(0) since some
default values are not zero. */
extern void gdbarch_info_init (struct gdbarch_info *info);