diff options
| author | Peter LaFosse <peter@vector35.com> | 2025-02-17 09:23:54 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-02-17 21:22:18 -0500 |
| commit | 8e4f68bc6c141bb73ec28aca2cd2e00148750ad7 (patch) | |
| tree | f91da31f5bd35235002556d8da1927421f806bed /view/sharedcache/core | |
| parent | 620588cf56e7409d707250a3e69342d789bea0bc (diff) | |
Don't fully initialize when in parseOnly mode
Diffstat (limited to 'view/sharedcache/core')
| -rw-r--r-- | view/sharedcache/core/DSCView.cpp | 3 | ||||
| -rw-r--r-- | view/sharedcache/core/DSCView.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/view/sharedcache/core/DSCView.cpp b/view/sharedcache/core/DSCView.cpp index b51f0d98..c22f8c1f 100644 --- a/view/sharedcache/core/DSCView.cpp +++ b/view/sharedcache/core/DSCView.cpp @@ -192,6 +192,9 @@ bool DSCView::Init() programSettings->Set("analysis.workflows.functionWorkflow", "core.function.dsc", this); } + if (m_parseOnly) + return true; + // Add Mach-O file header type info EnumerationBuilder cpuTypeBuilder; cpuTypeBuilder.AddMemberWithValue("CPU_TYPE_ANY", MACHO_CPU_TYPE_ANY); diff --git a/view/sharedcache/core/DSCView.h b/view/sharedcache/core/DSCView.h index d47dc179..bde2f7c2 100644 --- a/view/sharedcache/core/DSCView.h +++ b/view/sharedcache/core/DSCView.h @@ -9,7 +9,7 @@ class DSCView : public BinaryNinja::BinaryView { - [[maybe_unused]] bool m_parseOnly; + bool m_parseOnly; public: DSCView(const std::string &typeName, BinaryView *data, bool parseOnly = false); |
