From 7ea50bf94f22c651cd3aa8ca54e31682c28820fb Mon Sep 17 00:00:00 2001 From: Klaus Gerlicher Date: Thu, 10 Oct 2024 08:23:11 +0000 Subject: gdb: remove exact_match parameter from find_line_symtab struct symtab *find_line_symtab (struct symtab *, int, int *, bool *); The last parameter is bool* that when set will receive information if the match was exact. This parameter is never used by any callsite and can therefore be removed. This will become: symtab *find_line_symtab (symtab *sym_tab, int line, int *index); Approved-By: Tom Tromey --- gdb/symtab.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gdb/symtab.h') diff --git a/gdb/symtab.h b/gdb/symtab.h index aa86a80..ef2ff5e 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -2510,7 +2510,16 @@ completion_skip_symbol (complete_symbol_mode mode, Symbol *sym) bool matching_obj_sections (struct obj_section *, struct obj_section *); -extern struct symtab *find_line_symtab (struct symtab *, int, int *, bool *); +/* Find line number LINE in any symtab whose name is the same as + SYMTAB. + + If found, return the symtab that contains the linetable in which it was + found, set *INDEX to the index in the linetable of the best entry + found. The returned index includes inexact matches. + + If not found, return NULL. */ + +extern symtab *find_line_symtab (symtab *sym_tab, int line, int *index); /* Given a function symbol SYM, find the symtab and line for the start of the function. If FUNFIRSTLINE is true, we want the first line -- cgit v1.1