Re: Two small insight (gdb?) bugs

Keith Seitz <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
On 07/24/2011 11:45 AM, Keith Seitz wrote:
> This is happening because the varobjs are left in an unknown state, with
> stale pointers to memory. I will work on a fix for this, but this
> doesn't sound like your problem...

Ha, well, the patch is trivial. Give this a try and see if that helps at 
all...

Keith
clear-watchlist.patch (text/plain, 711 B)
Index: watch.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/watch.tcl,v
retrieving revision 1.11
diff -u -p -r1.11 watch.tcl
--- watch.tcl	1 Dec 2006 03:34:39 -0000	1.11
+++ watch.tcl	24 Jul 2011 19:28:45 -0000
@@ -1,5 +1,5 @@
 # Watch window for Insight.
-# Copyright (C) 2002, 2003, 2006 Red Hat
+# Copyright (C) 2002, 2003, 2006, 2011 Red Hat
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License (GPL) as published by
@@ -62,6 +62,7 @@ itcl::class WatchWin {
     foreach var $Watched {
       $var delete
     }
+    set Watched {}
     $tree remove all
   }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.