2003-01-13 Andrew Cagney <ac131313@redhat.com>

* gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
	predicate.
	* gdbarch.h, gdbarch.c: Regenerate.
	* stack.c (frame_info): Only initialize the saved registers when
	FRAME_INIT_SAVED_REGS_P.
	* frame.c (frame_saved_regs_register_unwind): Assert
	FRAME_INIT_SAVED_REGS_P.
	(deprecated_generic_get_saved_register): Ditto.
This commit is contained in:
Andrew Cagney 2003-01-13 21:10:30 +00:00
parent 3f565f1eb5
commit 8f87102502
6 changed files with 62 additions and 5 deletions

View file

@ -900,7 +900,8 @@ frame_info (char *addr_exp, int from_tty)
}
}
if (get_frame_saved_regs (fi) == NULL)
if (FRAME_INIT_SAVED_REGS_P ()
&& get_frame_saved_regs (fi) == NULL)
FRAME_INIT_SAVED_REGS (fi);
/* Print as much information as possible on the location of all the
registers. */