diff options
| author | TryTwo <taolas@gmail.com> | 2025-06-19 11:13:40 -0700 |
|---|---|---|
| committer | TryTwo <taolas@gmail.com> | 2025-06-20 10:55:11 -0700 |
| commit | 10c3b0b4e480be7811b63028e080d985e34f5239 (patch) | |
| tree | 1c0eb8e58ea6aaa2928a1b89daab59cecf206868 /Source/Core/DolphinQt/Debugger/CodeWidget.cpp | |
| parent | 2fb66e97087119715ada71c015f63c2decc97b2d (diff) | |
CodeWidget: Clear calls and callers box if there is no symbol, otherwise outdated data will persist.
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/Debugger/CodeWidget.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp index 50f7172a15..f28ee3ea12 100644 --- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp @@ -235,11 +235,10 @@ void CodeWidget::OnPPCSymbolsChanged() { UpdateSymbols(); UpdateCallstack(); - if (const Common::Symbol* symbol = m_ppc_symbol_db.GetSymbolFromAddr(m_code_view->GetAddress())) - { - UpdateFunctionCalls(symbol); - UpdateFunctionCallers(symbol); - } + + const Common::Symbol* symbol = m_ppc_symbol_db.GetSymbolFromAddr(m_code_view->GetAddress()); + UpdateFunctionCalls(symbol); + UpdateFunctionCallers(symbol); } void CodeWidget::ActivateSearchAddress() @@ -354,9 +353,6 @@ void CodeWidget::Update() m_code_view->Update(); m_code_view->setFocus(); - if (!symbol) - return; - UpdateFunctionCalls(symbol); UpdateFunctionCallers(symbol); } @@ -427,6 +423,9 @@ void CodeWidget::UpdateSymbols() void CodeWidget::UpdateFunctionCalls(const Common::Symbol* symbol) { m_function_calls_list->clear(); + if (symbol == nullptr) + return; + const QString filter = m_search_calls->text(); for (const auto& call : symbol->calls) @@ -461,6 +460,9 @@ void CodeWidget::UpdateFunctionCalls(const Common::Symbol* symbol) void CodeWidget::UpdateFunctionCallers(const Common::Symbol* symbol) { m_function_callers_list->clear(); + if (symbol == nullptr) + return; + const QString filter = m_search_callers->text(); for (const auto& caller : symbol->callers) |
