mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
OID: Don't run tree builder if we are dumping the data segment
We generally only dump the data segment when there is some issue running tree builder and we want to process it off-host.
This commit is contained in:
parent
592e182e0f
commit
352b71b02b
@ -2869,6 +2869,9 @@ bool OIDebugger::processTargetData() {
|
||||
if (!dumpDataSegment(req, outVec)) {
|
||||
LOG(ERROR) << "Failed to dump data-segment for " << req.arg;
|
||||
}
|
||||
|
||||
// Skip running Tree Builder
|
||||
continue;
|
||||
}
|
||||
|
||||
auto typeInfo = typeInfos.find(req);
|
||||
@ -2910,6 +2913,11 @@ bool OIDebugger::processTargetData() {
|
||||
}
|
||||
}
|
||||
|
||||
if (treeBuilderConfig.dumpDataSegment) {
|
||||
// Tree Builder was not run
|
||||
return true;
|
||||
}
|
||||
|
||||
if (typeTree.emptyOutput()) {
|
||||
LOG(FATAL)
|
||||
<< "Nothing to output: failed to run TreeBuilder on any argument";
|
||||
|
Loading…
Reference in New Issue
Block a user