* breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.

(skip_prologue_sal): Remove local definition.
	(resolve_sal_pc): Remove now unnecessary code.
	* linespec.c (minsym_found): Call skip_prologue_sal.
	* symtab.c (find_function_start_pc): Remove.
	(find_function_start_sal): Extract prologue skipping into ...
	(skip_prologue_sal): ... this new function.  Handle code both
	with and without debug info.  Respect SAL's explicit_pc and
	explicit_line flags.  Inline old find_function_start_pc.
	* symtab.h (find_function_start_pc): Remove.
	(skip_prologue_sal): Add prototype.
This commit is contained in:
Ulrich Weigand
2010-03-26 19:41:50 +00:00
parent 4a811a977f
commit 059acae734
5 changed files with 125 additions and 145 deletions

View File

@@ -1132,12 +1132,11 @@ extern char *find_main_filename (void);
extern struct symtab *find_line_symtab (struct symtab *, int, int *, int *);
extern CORE_ADDR find_function_start_pc (struct gdbarch *,
CORE_ADDR, struct obj_section *);
extern struct symtab_and_line find_function_start_sal (struct symbol *sym,
int);
extern void skip_prologue_sal (struct symtab_and_line *);
/* symfile.c */
extern void clear_symtab_users (void);