mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 12:25:35 +02:00
Display signal name and meaning if program is suspended by a signal.
This commit is contained in:
parent
edd6e29eff
commit
adac5a0ece
1 changed files with 12 additions and 0 deletions
|
@ -12,6 +12,7 @@ import java.util.HashMap;
|
|||
import org.eclipse.cdt.debug.core.IStackFrameInfo;
|
||||
import org.eclipse.cdt.debug.core.IState;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDISignal;
|
||||
import org.eclipse.core.resources.IFile;
|
||||
import org.eclipse.core.resources.IMarker;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
|
@ -230,6 +231,17 @@ public class CDTDebugModelPresentation extends LabelProvider
|
|||
}
|
||||
return label + ")";
|
||||
}
|
||||
case IState.SUSPENDED:
|
||||
{
|
||||
Object info = state.getCurrentStateInfo();
|
||||
if ( info != null && info instanceof ICDISignal )
|
||||
{
|
||||
String label = target.getName() +
|
||||
MessageFormat.format( " (Signal \'{0}\' received. Meaning: {1})",
|
||||
new String[] { ((ICDISignal)info).getName(), ((ICDISignal)info).getMeaning() } );
|
||||
return label;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return target.getName();
|
||||
|
|
Loading…
Add table
Reference in a new issue