summaryrefslogtreecommitdiff
path: root/view/sharedcache
diff options
context:
space:
mode:
Diffstat (limited to 'view/sharedcache')
-rw-r--r--view/sharedcache/core/DSCView.cpp3
-rw-r--r--view/sharedcache/core/DSCView.h2
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);