mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
ExitInfo takes MIInferiorExitEvent as argument in the constructor.
This commit is contained in:
parent
c732f75c54
commit
7de6e84c6b
2 changed files with 7 additions and 3 deletions
|
@ -6,20 +6,24 @@
|
|||
package org.eclipse.cdt.debug.mi.core.cdi;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.ICDIExitInfo;
|
||||
import org.eclipse.cdt.debug.mi.core.event.MIInferiorExitEvent;
|
||||
|
||||
/**.
|
||||
*/
|
||||
public class ExitInfo extends SessionObject implements ICDIExitInfo {
|
||||
|
||||
public ExitInfo(CSession session) {
|
||||
MIInferiorExitEvent event;
|
||||
|
||||
public ExitInfo(CSession session, MIInferiorExitEvent e) {
|
||||
super(session);
|
||||
event = e;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see org.eclipse.cdt.debug.core.cdi.ICDIExitInfo#getCode()
|
||||
*/
|
||||
public int getCode() {
|
||||
return getCSession().getCTarget().getProcess().exitValue();
|
||||
return event.getExitCode();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ public class ExitedEvent implements ICDIExitedEvent {
|
|||
* @see org.eclipse.cdt.debug.core.cdi.event.ICDIExitedEvent#getExitInfo()
|
||||
*/
|
||||
public ICDIExitInfo getExitInfo() {
|
||||
return new ExitInfo(session);
|
||||
return new ExitInfo(session, event);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue