summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2023-03-08 17:38:40 -0500
committerGitHub <noreply@github.com>2023-03-08 17:38:40 -0500
commit2856723bc1e15c3511d7f94b62fdbce98588ff86 (patch)
tree738b42d375ac31e1e0f0d52dbe965cfa89123758 /Source/Core/DolphinQt/Debugger/CodeWidget.cpp
parentc592c94395c8ef271eef331ba27d2afaa694c5e9 (diff)
parenta1c2651fee4b10ed5e7276b37669f4cd16aabf49 (diff)
Merge pull request #11632 from AdmiralCurtiss/pass-more-system
Pass System to Boot functions, CPUThreadGuard, IEXIDevice.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeWidget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
index f5fa095166..d232fede85 100644
--- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
@@ -330,7 +330,7 @@ void CodeWidget::UpdateCallstack()
std::vector<Dolphin_Debugger::CallstackEntry> stack;
const bool success = [&stack] {
- Core::CPUThreadGuard guard;
+ Core::CPUThreadGuard guard(Core::System::GetInstance());
return Dolphin_Debugger::GetCallstack(Core::System::GetInstance(), guard, stack);
}();
@@ -461,8 +461,8 @@ void CodeWidget::StepOver()
if (!cpu.IsStepping())
return;
- const UGeckoInstruction inst = [] {
- Core::CPUThreadGuard guard;
+ const UGeckoInstruction inst = [&] {
+ Core::CPUThreadGuard guard(system);
return PowerPC::HostRead_Instruction(guard, PowerPC::ppcState.pc);
}();
@@ -506,7 +506,7 @@ void CodeWidget::StepOut()
clock::time_point timeout = clock::now() + std::chrono::seconds(5);
{
- Core::CPUThreadGuard guard;
+ Core::CPUThreadGuard guard(system);
PowerPC::breakpoints.ClearAllTemporary();