summaryrefslogtreecommitdiff
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
commit734d157caf3c4a6cca8b9cda844246a860a17834 (patch)
tree6e2484bd32f292ddab16750bfe0ccce30a97cd6f /gdb/breakpoint.c
parentd3cb6d531b01be6e16eb48ff683bb8f5b8cd9940 (diff)
downloadgdb-734d157caf3c4a6cca8b9cda844246a860a17834.tar.gz
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 54cd2d92615..2998671bbf1 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)