Skip to content

Commit

Permalink
Fix the debugger UI not navigating to the current address when a brea…
Browse files Browse the repository at this point in the history
…kpoint is hit in a shared library
  • Loading branch information
xusheng6 committed Apr 11, 2023
1 parent 08c8fe8 commit e122766
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ui/ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,9 +922,11 @@ void DebuggerUI::navigateDebugger(uint64_t address)
for (auto i : syncGroup->members())
{
View* groupView = i->getCurrentViewInterface();
if (groupView->getCurrentFunction())
auto data = groupView->getData();
bool dataMatch = (data && (data == m_controller->GetLiveView() || data == m_controller->GetData()));
if (dataMatch && groupView->getCurrentFunction())
{
navigated = i->navigate(m_controller->GetLiveView(), address, true, true);
navigated |= i->navigate(m_controller->GetLiveView(), address, true, true);
if (navigated)
break;
}
Expand Down Expand Up @@ -1089,7 +1091,6 @@ void DebuggerUI::updateUI(const DebuggerEvent& event)
FileContext* fileContext = frame->getFileContext();
fileContext->refreshDataViewCache();
ViewFrame* newFrame = m_context->openFileContext(fileContext);
QCoreApplication::processEvents();

if (newFrame)
{
Expand Down

0 comments on commit e122766

Please sign in to comment.