* breakpoint.c (bpstat_stop_status): Check an additional
authorLuis Machado <luisgpm@br.ibm.com>
Mon, 17 Dec 2007 11:34:45 +0000 (11:34 +0000)
committerLuis Machado <luisgpm@br.ibm.com>
Mon, 17 Dec 2007 11:34:45 +0000 (11:34 +0000)
condition before evaluating an expression value.

gdb/ChangeLog
gdb/breakpoint.c

index de51252cdf0c85bcf7735d434499296dac2bd926..0cec62b32e0ddca30befc56dbb8b157e3e25c129 100644 (file)
@@ -1,3 +1,8 @@
+2007-12-17  Luis Machado  <luisgpm@br.ibm.com>
+
+        * breakpoint.c (bpstat_stop_status): Check an additional
+        condition before evaluating an expression value.
+
 2007-12-17  Joel Brobecker  <brobecker@adacore.com>
 
        * language.h (enum exp_opcode): Add forward declaration.
index 651ee893c5ce7b0a5faf706884955be8cf79cbcd..44c02f0593758f30f38943b480e616f4b910787b 100644 (file)
@@ -2823,7 +2823,7 @@ bpstat_stop_status (CORE_ADDR bp_addr, ptid_t ptid)
        if (b->type == bp_watchpoint_scope)
          b->related_breakpoint->watchpoint_triggered = watch_triggered_yes;
 
-       if (bl->cond)
+       if (bl->cond && bl->owner->disposition != disp_del_at_next_stop)
          {
            /* Need to select the frame, with all that implies
               so that the conditions will have the right context.  */