Skip to content

Commit

Permalink
Improve enum parsing debug information
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Haines committed Nov 24, 2021
1 parent b488ee1 commit 7a1b95e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions symtabAPI/src/dwarfWalker.C
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,8 @@ bool DwarfWalker::parseEnum() {

curName() = std::move(die_name());
setEnum(tc()->addOrUpdateType(Type::make_shared<typeEnum>(underlying_type, curName(), type_id())));

dwarf_printf("(0x%lx) end parseEnum\n", id());
return true;
}

Expand Down Expand Up @@ -1380,6 +1382,8 @@ bool DwarfWalker::parseEnumEntry() {
if(!value) { return false; }

curEnum()->asEnumType().addConstant(name, *value);

dwarf_printf("(0x%lx) end parseEnumEntry\n", id());
return true;
}

Expand Down

0 comments on commit 7a1b95e

Please sign in to comment.