mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-24 06:01:02 +00:00
minidump support: dump loading and process reconstruction
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
|
||||
#include "network/static_socket_factory.hpp"
|
||||
|
||||
#include "minidump_loader.hpp"
|
||||
|
||||
constexpr auto MAX_INSTRUCTIONS_PER_TIME_SLICE = 0x20000;
|
||||
|
||||
namespace
|
||||
@@ -662,3 +664,9 @@ void windows_emulator::restore_snapshot()
|
||||
this->process.deserialize(buffer);
|
||||
// this->process = *this->process_snapshot_;
|
||||
}
|
||||
|
||||
void windows_emulator::load_minidump(const std::filesystem::path& minidump_path)
|
||||
{
|
||||
minidump_loader mdmp_loader(*this, minidump_path);
|
||||
mdmp_loader.load_into_emulator();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user