feat: add mode field to JSON output, only emit stack_offset in clean mode

This commit is contained in:
x86byte
2026-06-30 09:21:05 +01:00
parent c4739221b7
commit 30862455d9
7 changed files with 264299 additions and 38211 deletions
+2 -1
View File
@@ -75,12 +75,13 @@ int main(int argc, char* argv[])
}
CFGBuilder builder(binary.get(), &dis, subsOnly);
if (subsOnly) cout << "mode: subs-only" << endl;
CFG cfg = builder.build();
cfg.mode_str = subsOnly ? "subs-only" : "full";
if (clean)
{
CFGBuilder::clean(cfg);
cfg.mode_str += "+clean";
cout << "clean: xrefs=" << cfg.xrefs.size() << " functions=" << cfg.functions.size() << endl;
}