summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2018-09-19 21:40:31 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2018-09-19 22:00:38 +0200
commit3b4a1582309bf064101b479591c9f3f299bce582 (patch)
tree133b63ee9b0506346086ceefd8d0f19f9a8e6aac
parentexternals: Update dynarmic to 171d116 (diff)
downloadyuzu-3b4a1582309bf064101b479591c9f3f299bce582.tar
yuzu-3b4a1582309bf064101b479591c9f3f299bce582.tar.gz
yuzu-3b4a1582309bf064101b479591c9f3f299bce582.tar.bz2
yuzu-3b4a1582309bf064101b479591c9f3f299bce582.tar.lz
yuzu-3b4a1582309bf064101b479591c9f3f299bce582.tar.xz
yuzu-3b4a1582309bf064101b479591c9f3f299bce582.tar.zst
yuzu-3b4a1582309bf064101b479591c9f3f299bce582.zip
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp
index 3f072c51f..8b450dc54 100644
--- a/src/core/arm/dynarmic/arm_dynarmic.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic.cpp
@@ -12,6 +12,7 @@
#include "core/core.h"
#include "core/core_cpu.h"
#include "core/core_timing.h"
+#include "core/gdbstub/gdbstub.h"
#include "core/hle/kernel/process.h"
#include "core/hle/kernel/svc.h"
#include "core/memory.h"
@@ -79,6 +80,16 @@ public:
case Dynarmic::A64::Exception::SendEventLocal:
case Dynarmic::A64::Exception::Yield:
return;
+ case Dynarmic::A64::Exception::Breakpoint:
+ if (GDBStub::IsServerEnabled()) {
+ parent.SetPC(pc);
+ Kernel::Thread* thread = Kernel::GetCurrentThread();
+ parent.SaveContext(thread->context);
+ GDBStub::Break();
+ GDBStub::SendTrap(thread, 5);
+ return;
+ }
+ [[fallthrough]];
default:
ASSERT_MSG(false, "ExceptionRaised(exception = {}, pc = {:X})",
static_cast<std::size_t>(exception), pc);