From 5c2f42a8f33d79e99bec373ad046f91bae6be60b Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 4 Jul 2025 13:29:18 -0400 Subject: [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 --- view/sharedcache/ui/SharedCacheUINotifications.cpp | 2 ++ view/sharedcache/ui/dscpicker.cpp | 1 + view/sharedcache/ui/dsctriage.cpp | 1 + 3 files changed, 4 insertions(+) (limited to 'view/sharedcache') diff --git a/view/sharedcache/ui/SharedCacheUINotifications.cpp b/view/sharedcache/ui/SharedCacheUINotifications.cpp index 6c2d5f35..df7a14af 100644 --- a/view/sharedcache/ui/SharedCacheUINotifications.cpp +++ b/view/sharedcache/ui/SharedCacheUINotifications.cpp @@ -49,6 +49,7 @@ void UINotifications::OnViewChange(UIContext* context, ViewFrame* frame, const Q if (!controller->ApplyRegion(view, *foundRegion)) return; view.AddAnalysisOption("linearsweep"); + view.AddAnalysisOption("pointersweep"); view.UpdateAnalysis(); } }; @@ -63,6 +64,7 @@ void UINotifications::OnViewChange(UIContext* context, ViewFrame* frame, const Q if (!controller->ApplyImage(view, *foundImage)) return; view.AddAnalysisOption("linearsweep"); + view.AddAnalysisOption("pointersweep"); view.UpdateAnalysis(); } }; diff --git a/view/sharedcache/ui/dscpicker.cpp b/view/sharedcache/ui/dscpicker.cpp index 340b8aa8..cb567d8e 100644 --- a/view/sharedcache/ui/dscpicker.cpp +++ b/view/sharedcache/ui/dscpicker.cpp @@ -47,6 +47,7 @@ void DisplayDSCPicker(UIContext* ctx, Ref dscView) { controller->ApplyImage(*dscView, *selectedImage); dscView->AddAnalysisOption("linearsweep"); + dscView->AddAnalysisOption("pointersweep"); dscView->UpdateAnalysis(); } } diff --git a/view/sharedcache/ui/dsctriage.cpp b/view/sharedcache/ui/dsctriage.cpp index 32a8e97c..fc0e3a5a 100644 --- a/view/sharedcache/ui/dsctriage.cpp +++ b/view/sharedcache/ui/dsctriage.cpp @@ -132,6 +132,7 @@ void DSCTriageView::loadImagesWithAddr(const std::vector& addresses, b // Run analysis. this->m_data->AddAnalysisOption("linearsweep"); + this->m_data->AddAnalysisOption("pointersweep"); this->m_data->UpdateAnalysis(); } }); -- cgit v1.3.1