[PATCH] Watchpoints + conditionals problem

Luis Machado luisgpm@linux.vnet.ibm.com
Mon Dec 17 11:35:00 GMT 2007


Thanks Daniel.

On Sun, 2007-12-16 at 16:45 -0500, Daniel Jacobowitz wrote:
> On Wed, Nov 28, 2007 at 03:59:15PM -0200, Luis Machado wrote:
> > Index: gdb/breakpoint.c
> > ===================================================================
> > --- gdb.orig/breakpoint.c	2007-11-28 09:47:26.000000000 -0800
> > +++ gdb/breakpoint.c	2007-11-28 09:49:47.000000000 -0800
> > @@ -2969,7 +2969,7 @@
> >  	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.  */
> 
> Seems OK to me.
> 

-- 
Luis Machado
Software Engineer 
IBM Linux Technology Center
LoP Toolchain/Debuggers' team
Phone: +55 19-2132-2218
T/L: 839-2218
e-mail: luisgpm@linux.vnet.ibm.com



More information about the Gdb-patches mailing list