Make breakpoint_re_set_one work with overloaded member functions,

`b 123' and `b foo' if foo is a static function.
	* symtab.c (decode_line_1, decode_line_2):  New argument `canonical'
	to return canonical line specs if requested by the caller.
	* breakpoint.c, source.c, symtab.c, symtab.h:  Change prototypes and
	callers accordingly.
	* symtab.c (build_canonical_line_spec):  New helper function which
	constructs the canonical line spec.
	* breakpoint.c (break_command_1):  Use canonical line spec instead
	of command string as addr_string if necessary.
	* source.c (line_info):  Fix storage leak.
This commit is contained in:
Peter Schauer
1993-07-19 06:41:16 +00:00
parent 29b8ed0aaa
commit 6f87ec4a21
3 changed files with 122 additions and 10 deletions

View File

@@ -1038,7 +1038,7 @@ extern struct symtabs_and_lines
decode_line_spec_1 PARAMS ((char *, int));
extern struct symtabs_and_lines
decode_line_1 PARAMS ((char **, int, struct symtab *, int));
decode_line_1 PARAMS ((char **, int, struct symtab *, int, char ***));
/* Symmisc.c */