* mips-tdep.c (mips_skip_prologue): New argument lenient.

Use read_memory_nobpt.
	(is_delayed, mips_in_lenient_prologue): New functions.
	(init_extra_frame_info): If in the prologue, don't use saved registers.
	* config/mips/tm-mips.h: Declare mips_skip_prologue.
This commit is contained in:
Jim Kingdon
1993-07-19 02:28:21 +00:00
parent 0ffccbfb6c
commit ee5fb95969
3 changed files with 85 additions and 24 deletions

View File

@@ -42,7 +42,8 @@ extern int mips_fpu;
/* Advance PC across any function entry prologue instructions
to reach some "real" code. */
#define SKIP_PROLOGUE(pc) pc = mips_skip_prologue(pc)
#define SKIP_PROLOGUE(pc) pc = mips_skip_prologue (pc, 0)
extern CORE_ADDR mips_skip_prologue PARAMS ((CORE_ADDR addr, int lenient));
/* Immediately after a function call, return the saved pc.
Can't always go through the frames for this because on some machines