mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
2004-09-03 Andrew Cagney <cagney@gnu.org>
* mips-tdep.c (after_prologue): Replace proc_desc parameter with local variable. (mips_skip_prologue): Update.
This commit is contained in:
@ -1,8 +1,13 @@
|
|||||||
2004-09-03 Andrew Cagney <cagney@gnu.org>
|
2004-09-03 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
|
* mips-tdep.c (after_prologue): Replace proc_desc parameter with
|
||||||
|
local variable.
|
||||||
|
(mips_skip_prologue): Update.
|
||||||
|
|
||||||
* mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
|
* mips-tdep.c (find_proc_desc, heuristic_proc_desc): Delete
|
||||||
"cur_frame" parameter.
|
"cur_frame" parameter.
|
||||||
(after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
|
(after_prologue, mips_mdebug_frame_cache, mips_insn16_frame_cache):
|
||||||
|
(mips_insn32_frame_cache, find_proc_desc): Update
|
||||||
|
|
||||||
* config/vax/nm-obsd.h: Delete file.
|
* config/vax/nm-obsd.h: Delete file.
|
||||||
* config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
|
* config/vax/obsd.mh (NAT_FILE): Set to config/nm-bsd.h.
|
||||||
|
@ -434,8 +434,7 @@ static void reinit_frame_cache_sfunc (char *, int, struct cmd_list_element *);
|
|||||||
static mips_extra_func_info_t find_proc_desc (CORE_ADDR pc,
|
static mips_extra_func_info_t find_proc_desc (CORE_ADDR pc,
|
||||||
struct frame_info *next_frame);
|
struct frame_info *next_frame);
|
||||||
|
|
||||||
static CORE_ADDR after_prologue (CORE_ADDR pc,
|
static CORE_ADDR after_prologue (CORE_ADDR pc);
|
||||||
mips_extra_func_info_t proc_desc);
|
|
||||||
|
|
||||||
static struct type *mips_float_register_type (void);
|
static struct type *mips_float_register_type (void);
|
||||||
static struct type *mips_double_register_type (void);
|
static struct type *mips_double_register_type (void);
|
||||||
@ -884,8 +883,9 @@ mips_write_pc (CORE_ADDR pc, ptid_t ptid)
|
|||||||
find the prologue, then return 0. */
|
find the prologue, then return 0. */
|
||||||
|
|
||||||
static CORE_ADDR
|
static CORE_ADDR
|
||||||
after_prologue (CORE_ADDR pc, mips_extra_func_info_t proc_desc)
|
after_prologue (CORE_ADDR pc)
|
||||||
{
|
{
|
||||||
|
mips_extra_func_info_t proc_desc;
|
||||||
struct symtab_and_line sal;
|
struct symtab_and_line sal;
|
||||||
CORE_ADDR func_addr, func_end;
|
CORE_ADDR func_addr, func_end;
|
||||||
|
|
||||||
@ -894,8 +894,7 @@ after_prologue (CORE_ADDR pc, mips_extra_func_info_t proc_desc)
|
|||||||
the current machine state has nothing to do with the information
|
the current machine state has nothing to do with the information
|
||||||
we need from the proc_desc; and the process may or may not exist
|
we need from the proc_desc; and the process may or may not exist
|
||||||
right now. */
|
right now. */
|
||||||
if (!proc_desc)
|
proc_desc = find_proc_desc (pc, NULL);
|
||||||
proc_desc = find_proc_desc (pc, NULL);
|
|
||||||
|
|
||||||
if (proc_desc)
|
if (proc_desc)
|
||||||
{
|
{
|
||||||
@ -5439,7 +5438,7 @@ mips_skip_prologue (CORE_ADDR pc)
|
|||||||
If so, then return either PC, or the PC after the prologue, whichever
|
If so, then return either PC, or the PC after the prologue, whichever
|
||||||
is greater. */
|
is greater. */
|
||||||
|
|
||||||
CORE_ADDR post_prologue_pc = after_prologue (pc, NULL);
|
CORE_ADDR post_prologue_pc = after_prologue (pc);
|
||||||
|
|
||||||
if (post_prologue_pc != 0)
|
if (post_prologue_pc != 0)
|
||||||
return max (pc, post_prologue_pc);
|
return max (pc, post_prologue_pc);
|
||||||
|
Reference in New Issue
Block a user