diff options
| author | 2022-12-06 20:20:20 +0000 | |
|---|---|---|
| committer | 2022-12-06 20:20:20 +0000 | |
| commit | e1f5f4bdea084d499a20c6c29902e296224fc5ed (patch) | |
| tree | f725b18f788f13f8e1fa6781caec1cd7570f2d88 /src/core/arm/arm_interface.cpp | |
| parent | Merge pull request #9393 from liamwhite/more-vulkan (diff) | |
| parent | core: add option to break on unmapped access (diff) | |
| download | yuzu-e1f5f4bdea084d499a20c6c29902e296224fc5ed.tar.gz yuzu-e1f5f4bdea084d499a20c6c29902e296224fc5ed.tar.xz yuzu-e1f5f4bdea084d499a20c6c29902e296224fc5ed.zip | |
Merge pull request #9370 from liamwhite/break-unmapped
core: add option to break on unmapped access
Diffstat (limited to 'src/core/arm/arm_interface.cpp')
| -rw-r--r-- | src/core/arm/arm_interface.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/arm/arm_interface.cpp b/src/core/arm/arm_interface.cpp index 29ba562dc..2df7b0ee8 100644 --- a/src/core/arm/arm_interface.cpp +++ b/src/core/arm/arm_interface.cpp | |||
| @@ -145,11 +145,15 @@ void ARM_Interface::Run() { | |||
| 145 | // Notify the debugger and go to sleep if a breakpoint was hit, | 145 | // Notify the debugger and go to sleep if a breakpoint was hit, |
| 146 | // or if the thread is unable to continue for any reason. | 146 | // or if the thread is unable to continue for any reason. |
| 147 | if (Has(hr, breakpoint) || Has(hr, no_execute)) { | 147 | if (Has(hr, breakpoint) || Has(hr, no_execute)) { |
| 148 | RewindBreakpointInstruction(); | 148 | if (!Has(hr, no_execute)) { |
| 149 | RewindBreakpointInstruction(); | ||
| 150 | } | ||
| 149 | if (system.DebuggerEnabled()) { | 151 | if (system.DebuggerEnabled()) { |
| 150 | system.GetDebugger().NotifyThreadStopped(current_thread); | 152 | system.GetDebugger().NotifyThreadStopped(current_thread); |
| 153 | } else { | ||
| 154 | LogBacktrace(); | ||
| 151 | } | 155 | } |
| 152 | current_thread->RequestSuspend(Kernel::SuspendType::Debug); | 156 | current_thread->RequestSuspend(SuspendType::Debug); |
| 153 | break; | 157 | break; |
| 154 | } | 158 | } |
| 155 | 159 | ||