Skip to content

Commit 5c2f42a

Browse files
committed
[SharedCache] Enqueue pointer sweep on image/region load
This is enabled as is, there might need to be some restrictions later on, does not seem to have an unreasonable impact analysis time
1 parent cc92c16 commit 5c2f42a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

view/sharedcache/ui/SharedCacheUINotifications.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ void UINotifications::OnViewChange(UIContext* context, ViewFrame* frame, const Q
4949
if (!controller->ApplyRegion(view, *foundRegion))
5050
return;
5151
view.AddAnalysisOption("linearsweep");
52+
view.AddAnalysisOption("pointersweep");
5253
view.UpdateAnalysis();
5354
}
5455
};
@@ -63,6 +64,7 @@ void UINotifications::OnViewChange(UIContext* context, ViewFrame* frame, const Q
6364
if (!controller->ApplyImage(view, *foundImage))
6465
return;
6566
view.AddAnalysisOption("linearsweep");
67+
view.AddAnalysisOption("pointersweep");
6668
view.UpdateAnalysis();
6769
}
6870
};

view/sharedcache/ui/dscpicker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ void DisplayDSCPicker(UIContext* ctx, Ref<BinaryView> dscView)
4747
{
4848
controller->ApplyImage(*dscView, *selectedImage);
4949
dscView->AddAnalysisOption("linearsweep");
50+
dscView->AddAnalysisOption("pointersweep");
5051
dscView->UpdateAnalysis();
5152
}
5253
}

view/sharedcache/ui/dsctriage.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ void DSCTriageView::loadImagesWithAddr(const std::vector<uint64_t>& addresses, b
132132

133133
// Run analysis.
134134
this->m_data->AddAnalysisOption("linearsweep");
135+
this->m_data->AddAnalysisOption("pointersweep");
135136
this->m_data->UpdateAnalysis();
136137
}
137138
});

0 commit comments

Comments
 (0)