This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Watchpoints + conditionals problem
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 17 Dec 2007 09:35:24 -0200
- Subject: Re: [PATCH] Watchpoints + conditionals problem
- References: <1196272755.15925.11.camel@gargoyle> <20071216214500.GD2618@caradoc.them.org>
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
> Seems OK to me.
I've checked this in now.
Regards,
--
Luis Machado
Software Engineer
IBM Linux Technology Center
2007-12-17 Luis Machado <luisgpm@br.ibm.com>
* breakpoint.c (bpstat_stop_status): Check an additional
condition before evaluating an expression value.
Index: gdb/breakpoint.c
===================================================================
--- gdb.orig/breakpoint.c 2007-12-17 03:18:27.000000000 -0800
+++ gdb/breakpoint.c 2007-12-17 03:18:50.000000000 -0800
@@ -2823,7 +2823,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. */