[Monodevelop-patches-list] r2434 - in trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn: . Gui

Chris Toshok toshok at mono-cvs.ximian.com
Wed Apr 6 20:08:56 EDT 2005


Author: toshok
Date: 2005-04-06 20:08:56 -0400 (Wed, 06 Apr 2005)
New Revision: 2434

Modified:
   trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/Gui/StackTracePad.cs
Log:
2005-04-06  Chris Toshok  <toshok at ximian.com>

	* Gui/StackTracePad.cs (StackTracePad.OnStoppedEvent): set
	current_frame to null before calling UpdateDisplay.
	(StackTracePad.OnResumedEvent): just don't update here - should we
	clear the display?  or leave it as it is until the next time the
	debugger stops?
	(StackTracePad.UpdateDisplay): if the current_frame (or its
	method) is null, clear the display.



Modified: trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/ChangeLog	2005-04-07 00:02:46 UTC (rev 2433)
+++ trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/ChangeLog	2005-04-07 00:08:56 UTC (rev 2434)
@@ -1,5 +1,13 @@
 2005-04-06  Chris Toshok  <toshok at ximian.com>
 
+	* Gui/StackTracePad.cs (StackTracePad.OnStoppedEvent): set
+	current_frame to null before calling UpdateDisplay.
+	(StackTracePad.OnResumedEvent): just don't update here - should we
+	clear the display?  or leave it as it is until the next time the
+	debugger stops?
+	
+2005-04-06  Chris Toshok  <toshok at ximian.com>
+
 	* Gui/LocalsPad.cs: wrap the using MonoDevelop.DebuggerVisualizers
 	with #if NET_2_0.
 	(LocalsPad.VisualizerActivate): comment out an unworking line for

Modified: trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/Gui/StackTracePad.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/Gui/StackTracePad.cs	2005-04-07 00:02:46 UTC (rev 2433)
+++ trunk/MonoDevelop/Core/src/AddIns/DebuggerAddIn/Gui/StackTracePad.cs	2005-04-07 00:08:56 UTC (rev 2434)
@@ -52,12 +52,17 @@
 
 		public void UpdateDisplay ()
 		{
-			if ((current_frame == null) || (current_frame.Method == null))
+			TreeIter it;
+
+			if ((current_frame == null) || (current_frame.Method == null)) {
+				if (store.GetIterFirst (out it))
+					do { } while (store.Remove (ref it));
+
 				return;
+			}
 
 			string[] trace = Runtime.DebuggingService.Backtrace;
 
-			TreeIter it;
 			if (!store.GetIterFirst (out it)) {
 				foreach (string frame in trace) {
 					store.Append (out it);
@@ -78,12 +83,12 @@
 
 		protected void OnStoppedEvent (object o, EventArgs args)
 		{
+			current_frame = null;
 			UpdateDisplay ();
 		}
 
 		protected void OnResumedEvent (object o, EventArgs args)
 		{
-			UpdateDisplay ();
 		}
 
 		protected void OnPausedEvent (object o, EventArgs args)




More information about the Monodevelop-patches-list mailing list