1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-20 07:25:23 +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

@ -341,11 +341,13 @@ public class CDebugUIPlugin extends AbstractUIPlugin implements ISelectionListen
if ( ((IThread)element).getDebugTarget() instanceof ISwitchToThread ) if ( ((IThread)element).getDebugTarget() instanceof ISwitchToThread )
{ {
try 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 ) catch( DebugException e )
{ {