set_current_program_space (pspace);
/* Simplistic search just for the list command. */
- val.symtab = find_line_symtab (elt, val.line, NULL, NULL);
+ val.symtab = find_line_symtab (elt, val.line, nullptr);
if (val.symtab == NULL)
val.symtab = elt;
val.pspace = pspace;
return sal.symtab;
}
\f
-/* 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, and set *EXACT_MATCH to true if the value returned is an
- exact match.
-
- If not found, return NULL. */
+/* See symtab.h. */
-struct symtab *
-find_line_symtab (struct symtab *sym_tab, int line,
- int *index, bool *exact_match)
+symtab *
+find_line_symtab (symtab *sym_tab, int line, int *index)
{
int exact = 0; /* Initialized here to avoid a compiler warning. */
if (index)
*index = best_index;
- if (exact_match)
- *exact_match = (exact != 0);
return best_symtab;
}
if (symtab == 0)
return false;
- symtab = find_line_symtab (symtab, line, &ind, NULL);
+ symtab = find_line_symtab (symtab, line, &ind);
if (symtab != NULL)
{
l = symtab->linetable ();
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