aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-09-19 03:58:41 +0000
committerAndrew Cagney <cagney@redhat.com>2002-09-19 03:58:41 +0000
commit389e51db103b5c811f1849228c2c5e9e71062f5a (patch)
treef29314af18fc82fc8eaeaf5b9ac5ddb55d09fd5c /gdb/breakpoint.c
parent3b4efeaa2da94f19becde56d8c8f9693367acafc (diff)
downloadgdb-389e51db103b5c811f1849228c2c5e9e71062f5a.zip
gdb-389e51db103b5c811f1849228c2c5e9e71062f5a.tar.gz
gdb-389e51db103b5c811f1849228c2c5e9e71062f5a.tar.bz2
Revert previous change. Not obvious.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 54cd2d9..2998671 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -4618,16 +4618,13 @@ parse_breakpoint_sals (char **address,
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. */
- /* Also ignore objc method name. FIXME better comment? */
if (default_breakpoint_valid
&& (!current_source_symtab
- || ((strchr ("+-", (*address)[0]) != NULL)
- && ((*address)[1] != '['))))
+ || (strchr ("+-", (*address)[0]) != NULL)))
*sals = decode_line_1 (address, 1, default_breakpoint_symtab,
default_breakpoint_line, addr_string);
else
- *sals = decode_line_1 (address, 1, (struct symtab *) NULL,
- 0, addr_string);
+ *sals = decode_line_1 (address, 1, (struct symtab *) NULL, 0, addr_string);
}
/* For any SAL that didn't have a canonical string, fill one in. */
if (sals->nelts > 0 && *addr_string == NULL)