Skip to content

Commit

Permalink
Properly reset the current IP and last IP when the target exits. Fix …
Browse files Browse the repository at this point in the history
…UI sometimes not navigating to the current IP on restart
  • Loading branch information
xusheng6 committed Apr 11, 2023
1 parent 5a0ba0a commit 08c8fe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/debuggercontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,8 @@ void DebuggerController::EventHandler(const DebuggerEvent& event)
m_initialBreakpointSeen = false;
m_liveView->GetFile()->UnregisterViewOfType("Debugger", m_liveView);
SetLiveView(nullptr);
m_currentIP = 0;
m_lastIP = 0;
m_state->SetConnectionStatus(DebugAdapterNotConnectedStatus);
m_state->SetExecutionStatus(DebugAdapterInvalidStatus);
break;
Expand Down

0 comments on commit 08c8fe8

Please sign in to comment.