From 4182591fce9f672b648e8dcfcf33d0df556b7a22 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 29 May 2002 16:39:56 +0000 Subject: * 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. --- gdb/arch-utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/arch-utils.h') 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); -- cgit v1.1