Skip to content

Commit

Permalink
Fix bug in navigation code
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Apr 11, 2023
1 parent d972a36 commit e024102
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,17 +916,17 @@ 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())
{
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;
}
}
}
Expand Down

0 comments on commit e024102

Please sign in to comment.