1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Do not use the sameThread() method.

This commit is contained in:
Alain Magloire 2002-10-30 14:47:31 +00:00
parent 1a83c46a2c
commit 5b211d6865

View file

@ -342,10 +342,12 @@ public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListen
{ {
try try
{ {
if ( !sameThread( (IDebugElement)element ) ) ((ISwitchToThread)((IThread)element).getDebugTarget()).setCurrentThread( (IThread)element );
{ // The sameThread() method is doing the wrong calculations, let the implementation handle it.
((ISwitchToThread)((IThread)element).getDebugTarget()).setCurrentThread( (IThread)element ); //if ( !sameThread( (IDebugElement)element ) )
} //{
// ((ISwitchToThread)((IThread)element).getDebugTarget()).setCurrentThread( (IThread)element );
//}
} }
catch( DebugException e ) catch( DebugException e )
{ {