Skip to content

Commit 6d2f7cd

Browse files
committed
Base detection rebase navigation improvement
Now is able to correctly navigate from raw triage summary to mapped linear view when starting analysis from the identified base address
1 parent f3e890a commit 6d2f7cd

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

examples/triage/baseaddress.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,21 @@ void BaseAddressDetectionWidget::RebaseWithFullAnalysis()
288288

289289
uiContext->recreateViewFrames(fileContext);
290290
fileContext->refreshDataViewCache();
291-
auto view = frame->getCurrentViewInterface();
291+
292+
auto newFrame = ViewFrame::viewFrameForWidget(this);
293+
if (!newFrame)
294+
return;
295+
296+
auto view = newFrame->getCurrentViewInterface();
292297
if (!view)
293298
return;
294299

300+
auto data = view->getData();
301+
if (!data)
302+
return;
303+
295304
if (!view->navigate(address))
296-
m_view->Navigate(string("Linear:" + frame->getCurrentDataType().toStdString()), address);
305+
data->Navigate("Linear:Mapped", address);
297306
}
298307

299308

0 commit comments

Comments
 (0)