diff --git a/deps/mini-gdbstub b/deps/mini-gdbstub index e0fc5933..c3fccbd2 160000 --- a/deps/mini-gdbstub +++ b/deps/mini-gdbstub @@ -1 +1 @@ -Subproject commit e0fc5933373ca709688d819e486b14ba0cba9e79 +Subproject commit c3fccbd28154e252dd28c85e71deb7603ecd1d04 diff --git a/src/windows_emulator/main.cpp b/src/windows_emulator/main.cpp index eb388446..4ea7e8fd 100644 --- a/src/windows_emulator/main.cpp +++ b/src/windows_emulator/main.cpp @@ -23,6 +23,8 @@ #define KUSD_ADDRESS 0x7ffe0000 +bool use_gdb = true; + namespace { void setup_stack(x64_emulator& emu, const uint64_t stack_base, const size_t stack_size) @@ -514,7 +516,6 @@ namespace void run() { - constexpr bool use_gdb = true; const auto emu = unicorn::create_x64_emulator(); auto context = setup_context(*emu); @@ -611,7 +612,12 @@ int main(int /*argc*/, char** /*argv*/) { try { - run(); + do + { + run(); + } + while (use_gdb); + return 0; } catch (std::exception& uce)