Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] PR 25283 (thread switch)

2002-10-30 Alain Magloire

	* src/.../ui/CDebugUIPlugin.java (selectionChanged):
	sameThread() code is commented out amd we let the underlying
	implementation swith thread.


Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.21
diff -u -r1.21 ChangeLog
--- ChangeLog	30 Oct 2002 05:03:21 -0000	1.21
+++ ChangeLog	30 Oct 2002 14:41:33 -0000
@@ -1,3 +1,9 @@
+2002-10-30 Alain Magloire
+
+	* src/.../ui/CDebugUIPlugin.java (selectionChanged):
+	sameThread() code is commented out amd we let the underlying
+	implementation swith thread.
+
 2002-10-29 Mikhail Khodjaiants
 	Implementing editing features of the memory view.
 	* MemoryPresentation.java
Index: src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java,v
retrieving revision 1.11
diff -u -r1.11 CDebugUIPlugin.java
--- src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java	15 Oct 2002 21:36:03 -0000	1.11
+++ src/org/eclipse/cdt/debug/ui/CDebugUIPlugin.java	30 Oct 2002 14:41:35 -0000
@@ -342,10 +342,12 @@
 					{
 						try
 						{
-							if ( !sameThread( (IDebugElement)element ) )
-							{
-								((ISwitchToThread)((IThread)element).getDebugTarget()).setCurrentThread( (IThread)element );
-							}
+							((ISwitchToThread)((IThread)element).getDebugTarget()).setCurrentThread( (IThread)element );
+							// The sameThread() method is doing the wrong calculations, let the implementation handle it.
+							//if ( !sameThread( (IDebugElement)element ) )
+							//{
+							//	((ISwitchToThread)((IThread)element).getDebugTarget()).setCurrentThread( (IThread)element );
+							//}
 						}
 						catch( DebugException e )
 						{



Back to the top