1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Changes to ICDIExitEvent.

This commit is contained in:
Alain Magloire 2003-02-03 21:36:23 +00:00
parent ec7e2e074f
commit e8727feae7

View file

@ -14,6 +14,7 @@ import org.eclipse.cdt.debug.core.cdi.ICDIBreakpointHit;
import org.eclipse.cdt.debug.core.cdi.ICDIErrorInfo;
import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
import org.eclipse.cdt.debug.core.cdi.ICDISession;
import org.eclipse.cdt.debug.core.cdi.ICDISignalExitInfo;
import org.eclipse.cdt.debug.core.cdi.ICDISignalReceived;
import org.eclipse.cdt.debug.core.cdi.ICDIWatchpointScope;
import org.eclipse.cdt.debug.core.cdi.ICDIWatchpointTrigger;
@ -354,7 +355,13 @@ public class CDTDebugModelPresentation extends LabelProvider
{
Object info = state.getCurrentStateInfo();
String label = target.getName() + " (Exited";
if ( info != null && info instanceof ICDIExitInfo )
if ( info != null && info instanceof ICDISignalExitInfo)
{
ICDISignalExitInfo sigInfo = (ICDISignalExitInfo)info;
label += MessageFormat.format( " (Signal ''{0}'' received. Meaning: {1})",
new String[] { sigInfo.getName(), sigInfo.getDescription() } );
}
else if ( info != null && info instanceof ICDIExitInfo )
{
label += ". Exit code = " + ((ICDIExitInfo)info).getCode();
}