From e02410267b199c2226f68d4aebc0cff814b4ca4b Mon Sep 17 00:00:00 2001 From: Xusheng Date: Thu, 23 Mar 2023 14:30:55 +0800 Subject: [PATCH] Fix bug in navigation code --- ui/ui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/ui.cpp b/ui/ui.cpp index a4f6717e..5f518abb 100644 --- a/ui/ui.cpp +++ b/ui/ui.cpp @@ -916,7 +916,7 @@ void DebuggerUI::navigateDebugger(uint64_t address) auto fileContext = frame->getFileContext(); if (fileContext) { - auto syncGroups = frame->getFileContext()->allSyncGroups(); + auto syncGroups = fileContext->allSyncGroups(); for (const auto& syncGroup : syncGroups) { for (auto i : syncGroup->members()) @@ -924,9 +924,9 @@ void DebuggerUI::navigateDebugger(uint64_t address) View* groupView = i->getCurrentViewInterface(); if (groupView->getCurrentFunction()) { - i->navigate(m_controller->GetLiveView(), address, true, true); - navigated = true; - break; + navigated = i->navigate(m_controller->GetLiveView(), address, true, true); + if (navigated) + break; } } }