Merge "Check value in dump before printing" into qt-dev
am: d8ec9971cb
Change-Id: I0cb6c1bec55e8490681e161100ef8522aebd91e3
This commit is contained in:
@@ -129,12 +129,20 @@ class ValueBodyPrinter : public ConstValueVisitor {
|
|||||||
constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | android::ResTable_map::TYPE_FLAGS;
|
constexpr uint32_t kMask = android::ResTable_map::TYPE_ENUM | android::ResTable_map::TYPE_FLAGS;
|
||||||
if (attr->type_mask & kMask) {
|
if (attr->type_mask & kMask) {
|
||||||
for (const auto& symbol : attr->symbols) {
|
for (const auto& symbol : attr->symbols) {
|
||||||
printer_->Print(symbol.symbol.name.value().entry);
|
if (symbol.symbol.name) {
|
||||||
if (symbol.symbol.id) {
|
printer_->Print(symbol.symbol.name.value().entry);
|
||||||
printer_->Print("(");
|
|
||||||
|
if (symbol.symbol.id) {
|
||||||
|
printer_->Print("(");
|
||||||
|
printer_->Print(symbol.symbol.id.value().to_string());
|
||||||
|
printer_->Print(")");
|
||||||
|
}
|
||||||
|
} else if (symbol.symbol.id) {
|
||||||
printer_->Print(symbol.symbol.id.value().to_string());
|
printer_->Print(symbol.symbol.id.value().to_string());
|
||||||
printer_->Print(")");
|
} else {
|
||||||
|
printer_->Print("???");
|
||||||
}
|
}
|
||||||
|
|
||||||
printer_->Println(StringPrintf("=0x%08x", symbol.value));
|
printer_->Println(StringPrintf("=0x%08x", symbol.value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user