Skip to content

Commit 8e4f68b

Browse files
plafosseemesare
authored andcommitted
Don't fully initialize when in parseOnly mode
1 parent 620588c commit 8e4f68b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

view/sharedcache/core/DSCView.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ bool DSCView::Init()
192192
programSettings->Set("analysis.workflows.functionWorkflow", "core.function.dsc", this);
193193
}
194194

195+
if (m_parseOnly)
196+
return true;
197+
195198
// Add Mach-O file header type info
196199
EnumerationBuilder cpuTypeBuilder;
197200
cpuTypeBuilder.AddMemberWithValue("CPU_TYPE_ANY", MACHO_CPU_TYPE_ANY);

view/sharedcache/core/DSCView.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class DSCView : public BinaryNinja::BinaryView {
12-
[[maybe_unused]] bool m_parseOnly;
12+
bool m_parseOnly;
1313
public:
1414

1515
DSCView(const std::string &typeName, BinaryView *data, bool parseOnly = false);

0 commit comments

Comments
 (0)