diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-09-26 18:44:55 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-09-26 18:44:55 +0000 |
commit | d32a698258f285a51fdf6ce53773a868768a5516 (patch) | |
tree | c496d1e8754d7880eed46b169f814dfb8ce4978f /gdb | |
parent | 489eaebade344587e325f742915f8d2358af00df (diff) | |
download | gdb-d32a698258f285a51fdf6ce53773a868768a5516.zip gdb-d32a698258f285a51fdf6ce53773a868768a5516.tar.gz gdb-d32a698258f285a51fdf6ce53773a868768a5516.tar.bz2 |
* breakpoint.c (create_breakpoint): Set
condition on each location, not on the first
location of breakpoint.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 97bc5dd..3a94a1a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-09-26 Vladimir Prus <vladimir@codesourcery.com> + + * breakpoint.c (create_breakpoint): Set + condition on each location, not on the first + location of breakpoint. + 2007-09-26 Jim Blandy <jimb@codesourcery.com> * remote.c (getpkt_sane): Fix error message. No animals were diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 3bf87d5..0d1cb9e 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -5163,7 +5163,7 @@ create_breakpoint (struct symtabs_and_lines sals, char *addr_string, if (b->cond_string) { char *arg = b->cond_string; - b->loc->cond = parse_exp_1 (&arg, block_for_pc (b->loc->address), 0); + loc->cond = parse_exp_1 (&arg, block_for_pc (loc->address), 0); if (*arg) { if (pending_bp) |