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:
parent
1a83c46a2c
commit
5b211d6865
1 changed files with 6 additions and 4 deletions
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue