mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-04-27 04:44:31 +00:00
Merge pull request #422 from kohnakagawa/fix/add_symbols_record_in_to_json
add some missing records in json dump
This commit is contained in:
commit
caa767f26f
@ -148,6 +148,16 @@ void JsonVisitor::visit(const Binary& binary) {
|
||||
this->node_["signature"] = visitor.get();
|
||||
}
|
||||
|
||||
std::vector<json> symbols;
|
||||
for (const Symbol& symbol : binary.symbols()) {
|
||||
JsonVisitor visitor;
|
||||
visitor(symbol);
|
||||
symbols.emplace_back(visitor.get());
|
||||
}
|
||||
if (!symbols.empty()) {
|
||||
this->node_["symbols"] = symbols;
|
||||
}
|
||||
|
||||
// Load Configuration
|
||||
if (binary.has_configuration()) {
|
||||
JsonVisitor visitor;
|
||||
@ -272,6 +282,7 @@ void JsonVisitor::visit(const Section& section) {
|
||||
this->node_["pointerto_line_numbers"] = section.pointerto_line_numbers();
|
||||
this->node_["numberof_relocations"] = section.numberof_relocations();
|
||||
this->node_["numberof_line_numbers"] = section.numberof_line_numbers();
|
||||
this->node_["entropy"] = section.entropy();
|
||||
this->node_["characteristics"] = characteristics;
|
||||
this->node_["types"] = types;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user