mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 21:19:54 +00:00
(parse_breakpoint_sals): Ignore ObjC method
names when matching breakpoints in current file.
This commit is contained in:
parent
8b2dbe47f3
commit
1aeae86e76
@ -1,3 +1,8 @@
|
||||
2002-10-16 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
|
||||
names when matching breakpoints in current file.
|
||||
|
||||
2002-10-16 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
|
||||
|
@ -4618,13 +4618,16 @@ parse_breakpoint_sals (char **address,
|
||||
/* Force almost all breakpoints to be in terms of the
|
||||
current_source_symtab (which is decode_line_1's default). This
|
||||
should produce the results we want almost all of the time while
|
||||
leaving default_breakpoint_* alone. */
|
||||
leaving default_breakpoint_* alone.
|
||||
ObjC: However, don't match an Objective-C method name which
|
||||
may have a '+' or '-' succeeded by a '[' */
|
||||
|
||||
struct symtab_and_line cursal = get_current_source_symtab_and_line ();
|
||||
|
||||
if (default_breakpoint_valid
|
||||
&& (!cursal.symtab
|
||||
|| (strchr ("+-", (*address)[0]) != NULL)))
|
||||
|| ((strchr ("+-", (*address)[0]) != NULL)
|
||||
&& ((*address)[1] != '['))))
|
||||
*sals = decode_line_1 (address, 1, default_breakpoint_symtab,
|
||||
default_breakpoint_line, addr_string);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user