* breakpoint.c (create_breakpoint): Set
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 26 Sep 2007 18:44:55 +0000 (18:44 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 26 Sep 2007 18:44:55 +0000 (18:44 +0000)
condition on each location, not on the first
location of breakpoint.

gdb/ChangeLog
gdb/breakpoint.c

index 97bc5ddedf80ba8a98829bf3a958927e12a074b1..3a94a1a61b46209cbaf47926fe4787a326fafc03 100644 (file)
@@ -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
index 3bf87d59506f73c605fedbdf76e35c758ae2db51..0d1cb9e06831606c59e821f3a136076f80f5a218 100644 (file)
@@ -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)