mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* mdebugread.c (parse_symbol, psymtab_to_symtab_1): Initialize
pdr.framereg field of MIPS_EFI_SYMBOL_NAME symbol to -1. That way we know whether the PDR ever got set. * mips-tdep.c (find_proc_desc): If pdr.framereg field is -1, don't use the PDR, just examine prologues instead.
This commit is contained in:
@ -1159,6 +1159,7 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets)
|
||||
sizeof (struct mips_extra_func_info)));
|
||||
SYMBOL_VALUE (s) = (long) e;
|
||||
e->numargs = top_stack->numargs;
|
||||
e->pdr.framereg = -1;
|
||||
add_symbol (s, top_stack->cur_block);
|
||||
|
||||
/* Reallocate symbols, saving memory */
|
||||
@ -3096,6 +3097,7 @@ psymtab_to_symtab_1 (pst, filename)
|
||||
SYMBOL_CLASS (s) = LOC_CONST;
|
||||
SYMBOL_TYPE (s) = builtin_type_void;
|
||||
SYMBOL_VALUE (s) = (long) e;
|
||||
e->pdr.framereg = -1;
|
||||
add_symbol_to_list (s, &local_symbols);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user