mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
gdb/symtab: remove section parameter from find_function_start_sal
All 2 callers of this overload pass NULL. Remove the parameter and pass nullptr explicitly to find_function_start_sal_1. Change-Id: Ie20e7c8ad980cd7af99b6ba9c23f4da19febc1bc
This commit is contained in:
committed by
Simon Marchi
parent
e3da6edc98
commit
6b0581fc92
@@ -1048,7 +1048,7 @@ elf_gnu_ifunc_resolver_return_stop (code_breakpoint *b)
|
|||||||
|
|
||||||
b->type = bp_breakpoint;
|
b->type = bp_breakpoint;
|
||||||
update_breakpoint_locations (b, current_program_space,
|
update_breakpoint_locations (b, current_program_space,
|
||||||
find_function_start_sal (resolved_pc, NULL, true),
|
find_function_start_sal (resolved_pc, true),
|
||||||
{});
|
{});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4074,7 +4074,7 @@ minsym_found (struct linespec_state *self, struct objfile *objfile,
|
|||||||
symtab_and_line sal;
|
symtab_and_line sal;
|
||||||
|
|
||||||
if (is_function && want_start_sal)
|
if (is_function && want_start_sal)
|
||||||
sal = find_function_start_sal (func_addr, NULL, self->funfirstline);
|
sal = find_function_start_sal (func_addr, self->funfirstline);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sal.objfile = objfile;
|
sal.objfile = objfile;
|
||||||
|
|||||||
@@ -3546,11 +3546,10 @@ find_function_start_sal_1 (CORE_ADDR func_addr, obj_section *section,
|
|||||||
/* See symtab.h. */
|
/* See symtab.h. */
|
||||||
|
|
||||||
symtab_and_line
|
symtab_and_line
|
||||||
find_function_start_sal (CORE_ADDR func_addr, obj_section *section,
|
find_function_start_sal (CORE_ADDR func_addr, bool funfirstline)
|
||||||
bool funfirstline)
|
|
||||||
{
|
{
|
||||||
symtab_and_line sal
|
symtab_and_line sal
|
||||||
= find_function_start_sal_1 (func_addr, section, funfirstline);
|
= find_function_start_sal_1 (func_addr, nullptr, funfirstline);
|
||||||
|
|
||||||
/* find_function_start_sal_1 does a linetable search, so it finds
|
/* find_function_start_sal_1 does a linetable search, so it finds
|
||||||
the symtab and linenumber, but not a symbol. Fill in the
|
the symtab and linenumber, but not a symbol. Fill in the
|
||||||
|
|||||||
@@ -2527,10 +2527,8 @@ extern symtab *find_line_symtab (symtab *sym_tab, int line, int *index);
|
|||||||
extern symtab_and_line find_function_start_sal (symbol *sym, bool
|
extern symtab_and_line find_function_start_sal (symbol *sym, bool
|
||||||
funfirstline);
|
funfirstline);
|
||||||
|
|
||||||
/* Same, but start with a function address/section instead of a
|
/* Same, but start with a function address instead of a symbol. */
|
||||||
symbol. */
|
|
||||||
extern symtab_and_line find_function_start_sal (CORE_ADDR func_addr,
|
extern symtab_and_line find_function_start_sal (CORE_ADDR func_addr,
|
||||||
obj_section *section,
|
|
||||||
bool funfirstline);
|
bool funfirstline);
|
||||||
|
|
||||||
extern void skip_prologue_sal (struct symtab_and_line *);
|
extern void skip_prologue_sal (struct symtab_and_line *);
|
||||||
|
|||||||
Reference in New Issue
Block a user