From f1e640727e5346311def3518c3188e25985a54fb Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 19 Jun 2024 16:32:23 +0800 Subject: [PATCH] Fix not rebasing the input view during headless usage --- core/debuggercontroller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/debuggercontroller.cpp b/core/debuggercontroller.cpp index 3a5a639..723a527 100644 --- a/core/debuggercontroller.cpp +++ b/core/debuggercontroller.cpp @@ -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(); } }