From 67212a28114b743f819c1acf41c022a5f1480f96 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 31 Aug 2024 09:21:11 +0200 Subject: [PATCH] Log exceptions --- src/windows_emulator/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/windows_emulator/main.cpp b/src/windows_emulator/main.cpp index 6fd8975..f1b90bb 100644 --- a/src/windows_emulator/main.cpp +++ b/src/windows_emulator/main.cpp @@ -303,9 +303,9 @@ namespace { this->emu_->start_from_ip(); } - catch (...) + catch (const std::exception& e) { - return gdb_action::resume; + puts(e.what()); } return gdb_action::resume; @@ -317,9 +317,9 @@ namespace { this->emu_->start_from_ip({}, 1); } - catch (...) + catch (const std::exception& e) { - return gdb_action::resume; + puts(e.what()); } return gdb_action::resume;