summaryrefslogtreecommitdiff
path: root/view/sharedcache/ui
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-07-04 13:29:18 -0400
committerMason Reed <mason@vector35.com>2025-07-04 13:29:18 -0400
commit5c2f42a8f33d79e99bec373ad046f91bae6be60b (patch)
treea4c315d468e94d2ec5910a9117d1e231ba0deb9d /view/sharedcache/ui
parentcc92c1678ab80fa42711b6a75553d3a2d2975c83 (diff)
[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
Diffstat (limited to 'view/sharedcache/ui')
-rw-r--r--view/sharedcache/ui/SharedCacheUINotifications.cpp2
-rw-r--r--view/sharedcache/ui/dscpicker.cpp1
-rw-r--r--view/sharedcache/ui/dsctriage.cpp1
3 files changed, 4 insertions, 0 deletions
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<BinaryView> 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<uint64_t>& addresses, b
// Run analysis.
this->m_data->AddAnalysisOption("linearsweep");
+ this->m_data->AddAnalysisOption("pointersweep");
this->m_data->UpdateAnalysis();
}
});