* mips-tdep.c: Remove code which sets saved_regs from

init_extra_frame_info and put it in new function mips_find_saved_regs.
	(READ_FRAME_REG): Remove macro and replace uses with the expansion.
	* mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
	check if it is NULL and call mips_find_saved_regs if so.
This commit is contained in:
Jim Kingdon
1994-01-31 21:22:44 +00:00
parent a7409c5498
commit 14d7956255
2 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,11 @@
Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com) Mon Jan 31 12:12:34 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* mips-tdep.c: Remove code which sets saved_regs from
init_extra_frame_info and put it in new function mips_find_saved_regs.
(READ_FRAME_REG): Remove macro and replace uses with the expansion.
* mips-tdep.c, config/mips/tm-mips.h: When examining ->saved_regs,
check if it is NULL and call mips_find_saved_regs if so.
* remote-mips.c: Use unfiltered, not filtered, output most places. * remote-mips.c: Use unfiltered, not filtered, output most places.
* blockframe.c (get_prev_frame_info): Detect and stop an infinite * blockframe.c (get_prev_frame_info): Detect and stop an infinite

View File

@ -272,9 +272,13 @@ extern int in_sigtramp PARAMS ((CORE_ADDR, char *));
ways in the stack frame. sp is even more special: ways in the stack frame. sp is even more special:
the address we return for it IS the sp for the next frame. */ the address we return for it IS the sp for the next frame. */
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) ( \ #define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
(frame_saved_regs) = *(frame_info)->saved_regs, \ do { \
(frame_saved_regs).regs[SP_REGNUM] = (frame_info)->frame) if ((frame_info)->saved_regs == NULL) \
mips_find_saved_regs (frame_info); \
(frame_saved_regs) = *(frame_info)->saved_regs; \
(frame_saved_regs).regs[SP_REGNUM] = (frame_info)->frame; \
} while (0)
/* Things needed for making the inferior call functions. */ /* Things needed for making the inferior call functions. */