mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
OIP prints location expressions
This commit is contained in:
parent
aea1e12004
commit
4e730fbc95
@ -206,8 +206,16 @@ void printFuncArg(const std::shared_ptr<FuncDesc::TargetObject>& funcObj) {
|
|||||||
printf(",");
|
printf(",");
|
||||||
}
|
}
|
||||||
const auto& location = funcArg->locator.locations[i];
|
const auto& location = funcArg->locator.locations[i];
|
||||||
printf("{\"start\":\"0x%zx\",\"end\":\"0x%zx\",\"expr_size\":%zu}",
|
printf("{\"start\":\"0x%zx\",\"end\":\"0x%zx\",\"expr_size\":%zu,\"expr\":[",
|
||||||
location.start, location.end, location.expr_size);
|
location.start, location.end, location.expr_size);
|
||||||
|
for (size_t j = 0; j < location.expr_size; j++) {
|
||||||
|
if (j > 0) {
|
||||||
|
printf(",");
|
||||||
|
}
|
||||||
|
|
||||||
|
printf("\"0x%hhx\"", location.expr[j]);
|
||||||
|
}
|
||||||
|
printf("]}");
|
||||||
}
|
}
|
||||||
printf("]");
|
printf("]");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user