This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Watchpoints + conditionals problem
- From: Daniel Jacobowitz <drow at false dot org>
- To: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 16 Dec 2007 16:45:00 -0500
- Subject: Re: [PATCH] Watchpoints + conditionals problem
- References: <1196272755.15925.11.camel@gargoyle>
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.
--
Daniel Jacobowitz
CodeSourcery