Skip to content

Commit

Permalink
Fix not rebasing the input view during headless usage
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Jun 19, 2024
1 parent 46631b6 commit f1e6407
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 @@ -1081,11 +1081,13 @@ void DebuggerController::DetectLoadedModule()
{
if (remoteBase != GetViewFileSegmentsStart())
{
RemoveDebuggerMemoryRegion();
// remote base is different from the local base, first need a rebase
if (!m_file->Rebase(GetData(), remoteBase, [&](size_t cur, size_t total) { return true; }))
{
LogWarn("rebase failed");
}
ReAddDebuggerMemoryRegion();
}
}

Expand Down

0 comments on commit f1e6407

Please sign in to comment.