Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [Patch] Watchpoint condition fix
@ 2008-04-10 14:21 Marc Khouzam
  2008-04-16 22:15 ` Joel Brobecker
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Khouzam @ 2008-04-10 14:21 UTC (permalink / raw)
  To: gdb-patches

Repost to gdb-patches from gdb mailing list post:
http://sourceware.org/ml/gdb/2008-04/msg00078.html

Watchpoint conditions are broken because they
get deleted when a watchpoint gets re-inserted.
When watchpoints get re-inserted, the condition 
string should be always reparsed.

Ok?

2008-04-10  Marc Khouzam  <marc.khouzam@ericsson.com>

	* breakpoint.c (update_watchpoint): Always reparse
	condition.

Index: gdb/breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.307
diff -u -r1.307 breakpoint.c
--- gdb/breakpoint.c    14 Mar 2008 18:57:43 -0000      1.307
+++ gdb/breakpoint.c    10 Apr 2008 12:25:32 -0000
@@ -986,7 +986,7 @@
            value_free (v);
        }
 
-      if (reparse && b->cond_string != NULL)
+      if (b->cond_string != NULL)
        {
          char *s = b->cond_string;
          if (b->loc->cond)



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-04-22 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-10 14:21 [Patch] Watchpoint condition fix Marc Khouzam
2008-04-16 22:15 ` Joel Brobecker
2008-04-17 18:48   ` Marc Khouzam
2008-04-17 21:09     ` Joel Brobecker
2008-04-18 10:10       ` Marc Khouzam
2008-04-19  1:39         ` Doug Evans
2008-04-19  1:58           ` Joel Brobecker
2008-04-22 20:36         ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox