}
}
+HRESULT Debugger::EmitExitedEvent(ExitedEvent event)
+{
+ Debugger::Printf("*stopped,reason=\"exited\",exit-code=\"%i\"\n", event.exitCode);
+ return S_OK;
+}
+
HRESULT Debugger::HandleCommand(std::string command,
const std::vector<std::string> &args,
std::string &output)
std::string &output, StepType stepType);
HRESULT EmitStoppedEvent(StoppedEvent event);
+ HRESULT EmitExitedEvent(ExitedEvent event);
-
public:
static HRESULT EmitBreakpointEvent(BreakpointEvent event);
/* [in] */ ICorDebugProcess *pProcess)
{
NotifyEvalComplete(nullptr, nullptr);
- Debugger::Printf("*stopped,reason=\"exited\",exit-code=\"%i\"\n", 0);
+ m_debugger->EmitExitedEvent(ExitedEvent(0));
NotifyProcessExited();
return S_OK;
}
BreakpointEvent(BreakpointReason reason, Breakpoint breakpoint) : reason(reason), breakpoint(breakpoint) {}
};
+
+struct ExitedEvent
+{
+ int exitCode;
+
+ ExitedEvent(int exitCode) : exitCode(exitCode) {}
+};