2002-11-05 Andrew Cagney <ac131313@redhat.com>

* gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
	* gdbarch.h, gdbarch.c: Regnerate.
	* frame.h (frame_register): Declare.
	* frame.c (frame_register): New function.
	(get_saved_register): Test GET_SAVED_REGISTER_P before calling
	GET_SAVED_REGISTER, otherwize call
	generic_unwind_get_saved_register.
	(frame_register_read): Use frame_register instead of
	get_saved_register.
This commit is contained in:
Andrew Cagney
2002-11-05 21:44:05 +00:00
parent b7c642601c
commit a216a32234
6 changed files with 125 additions and 9 deletions

View File

@ -350,6 +350,16 @@ extern void frame_register_unwind (struct frame_info *frame, int regnum,
CORE_ADDR *addrp, int *realnump,
void *valuep);
/* Return the value of the register in this FRAME. Convenience
function that is equivalent to frame_register_unwind
(get_next_frame (FRAME), ...). If VALUEP is NULL, don't
fetch/compute the value. */
extern void frame_register (struct frame_info *frame, int regnum,
int *optimizedp, enum lval_type *lvalp,
CORE_ADDR *addrp, int *realnump,
void *valuep);
/* Unwind FRAME so that the value of register REGNUM, in the previous
frame is returned. Simplified versions of frame_register_unwind. */
/* NOTE: cagney/2002-09-13: Return void as one day these functions may