mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 21:03:55 +08:00
* minsyms.h (struct bound_minimal_symbol): New.
(lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol. Remove objfile argument. (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc): Return bound_minimal_symbol. * minsyms.c (lookup_minimal_symbol_by_pc_1) (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc): Return bound_minimal_symbol. (in_gnu_ifunc_stub): Update. (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol. Remove 'objfile_p' argument. (lookup_solib_trampoline_symbol_by_pc): Update. * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c, arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c, c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c, glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c, i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c, linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c, mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c, ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c, stack.c, symtab.c, tui/tui-disasm.c: Update.
This commit is contained in:
@ -511,13 +511,14 @@ write_exp_msymbol (struct minimal_symbol *msymbol)
|
||||
pc = gdbarch_convert_from_func_ptr_addr (gdbarch, addr, ¤t_target);
|
||||
if (pc != addr)
|
||||
{
|
||||
struct minimal_symbol *ifunc_msym = lookup_minimal_symbol_by_pc (pc);
|
||||
struct bound_minimal_symbol ifunc_msym = lookup_minimal_symbol_by_pc (pc);
|
||||
|
||||
/* In this case, assume we have a code symbol instead of
|
||||
a data symbol. */
|
||||
|
||||
if (ifunc_msym != NULL && MSYMBOL_TYPE (ifunc_msym) == mst_text_gnu_ifunc
|
||||
&& SYMBOL_VALUE_ADDRESS (ifunc_msym) == pc)
|
||||
if (ifunc_msym.minsym != NULL
|
||||
&& MSYMBOL_TYPE (ifunc_msym.minsym) == mst_text_gnu_ifunc
|
||||
&& SYMBOL_VALUE_ADDRESS (ifunc_msym.minsym) == pc)
|
||||
{
|
||||
/* A function descriptor has been resolved but PC is still in the
|
||||
STT_GNU_IFUNC resolver body (such as because inferior does not
|
||||
|
Reference in New Issue
Block a user