aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorKlaus Gerlicher <klaus.gerlicher@intel.com>2024-10-10 08:23:11 +0000
committerKlaus Gerlicher <klaus.gerlicher@intel.com>2024-11-06 10:15:25 +0000
commit7ea50bf94f22c651cd3aa8ca54e31682c28820fb (patch)
tree5ebc2e8899368cfce3fca7724c525516c2651414 /gdb/symtab.h
parent52a8387dfdd34f3c62a92614c83b5ca93c9ba18c (diff)
downloadbinutils-7ea50bf94f22c651cd3aa8ca54e31682c28820fb.zip
binutils-7ea50bf94f22c651cd3aa8ca54e31682c28820fb.tar.gz
binutils-7ea50bf94f22c651cd3aa8ca54e31682c28820fb.tar.bz2
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 <tom@tromey.com>
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h11
1 files changed, 10 insertions, 1 deletions
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