summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-02-14 19:04:21 +0100
committerGitHub <noreply@github.com>2023-02-14 19:04:21 +0100
commit22ed0842098080e55773b00ebcce4c302bf8160e (patch)
tree2ff5acc83b4ea6e22e52ba549f3ecd3028442afb /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parentba3c38a63f9812ca7ab427960c3543a3c9dbc324 (diff)
parent5b6784432c128aaa7df750fa4776bd59bd59386b (diff)
Merge pull request #11563 from JosJuice/host-lock-cpu-fixups
Follow-up fixes for "Properly lock CPU before accessing emulated memory"
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
index a505060566..e843420b1e 100644
--- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
@@ -754,7 +754,7 @@ void CodeViewWidget::OnCopyTargetAddress()
const std::optional<u32> target_addr =
PowerPC::debug_interface.GetMemoryAddressFromInstruction(code_line);
- if (addr)
+ if (target_addr)
{
QApplication::clipboard()->setText(
QStringLiteral("%1").arg(*target_addr, 8, 16, QLatin1Char('0')));
@@ -784,7 +784,7 @@ void CodeViewWidget::OnShowTargetInMemory()
const std::optional<u32> target_addr =
PowerPC::debug_interface.GetMemoryAddressFromInstruction(code_line);
- if (addr)
+ if (target_addr)
emit ShowMemory(*target_addr);
}