summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-09-29 09:00:19 -0400
committerGitHub <noreply@github.com>2022-09-29 09:00:19 -0400
commit4f5a6ee461f3624816b9d6e44855d0761c463ba3 (patch)
treeaf09ec347dcb37a894460da7ca1cb0874a98723a /Source/Core/DolphinQt/Debugger/CodeWidget.cpp
parentdafe2c785ad3a6525674f5195c5105041ee524a8 (diff)
parent87f84d4f54ae36afcf218b5f0ee8d563e38cd3e0 (diff)
Merge pull request #11109 from Pokechu22/code-widget-symbol-update
Debugger/CodeWidget: Update callstack/callers/calls on symbol changes
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeWidget.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
index 252c62b84c..5f2d04afed 100644
--- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
@@ -176,7 +176,16 @@ void CodeWidget::ConnectWidgets()
connect(m_function_callers_list, &QListWidget::itemPressed, this,
&CodeWidget::OnSelectFunctionCallers);
- connect(m_code_view, &CodeViewWidget::SymbolsChanged, this, &CodeWidget::UpdateSymbols);
+ connect(m_code_view, &CodeViewWidget::SymbolsChanged, this, [this]() {
+ UpdateCallstack();
+ UpdateSymbols();
+ const Common::Symbol* symbol = g_symbolDB.GetSymbolFromAddr(m_code_view->GetAddress());
+ if (symbol)
+ {
+ UpdateFunctionCalls(symbol);
+ UpdateFunctionCallers(symbol);
+ }
+ });
connect(m_code_view, &CodeViewWidget::BreakpointsChanged, this,
[this] { emit BreakpointsChanged(); });
connect(m_code_view, &CodeViewWidget::UpdateCodeWidget, this, &CodeWidget::Update);