forked from Imagelibrary/binutils-gdb
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:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user