summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2018-12-29 15:08:51 +0100
committerGitHub <noreply@github.com>2018-12-29 15:08:51 +0100
commit75b8824c95176118b0d04b813e744f2b306ea026 (patch)
tree41a78010cecbcc5c68998e186e4f23b70f794310 /Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
parent187058a07277560061eb63e54d8a5562cd56f939 (diff)
parent3e3f9565ec784f99d8f143bb21f2f5206d41ab14 (diff)
Merge pull request #7658 from spycrab/debugger_show
Qt/Debugger: Add Show in Code / Show in Memory
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
index a1ab5ee3a1..295902d264 100644
--- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
@@ -229,6 +229,9 @@ void CodeViewWidget::OnContextMenu()
auto* copy_line_action =
menu->addAction(tr("Copy code &line"), this, &CodeViewWidget::OnCopyCode);
auto* copy_hex_action = menu->addAction(tr("Copy &hex"), this, &CodeViewWidget::OnCopyHex);
+
+ menu->addAction(tr("Show in &memory"), this, &CodeViewWidget::OnShowInMemory);
+
menu->addSeparator();
auto* symbol_rename_action =
@@ -272,6 +275,11 @@ void CodeViewWidget::OnCopyAddress()
QApplication::clipboard()->setText(QStringLiteral("%1").arg(addr, 8, 16, QLatin1Char('0')));
}
+void CodeViewWidget::OnShowInMemory()
+{
+ emit ShowMemory(GetContextAddress());
+}
+
void CodeViewWidget::OnCopyCode()
{
const u32 addr = GetContextAddress();