Report application exit

This commit is contained in:
momo5502
2025-01-19 18:17:05 +01:00
parent 71c3b8e36a
commit b3537cc2dd
3 changed files with 20 additions and 0 deletions

View File

@@ -68,6 +68,17 @@ class win_x64_gdb_stub_handler : public x64_gdb_stub_handler
return this->win_emu_->activate_thread(thread_id);
}
std::optional<uint32_t> get_exit_code() override
{
const auto status = this->win_emu_->process().exit_status;
if (!status)
{
return std::nullopt;
}
return static_cast<uint32_t>(*status);
}
private:
windows_emulator* win_emu_{};
};