Skip to content

Commit

Permalink
added hig and low pc to dwarf_dies
Browse files Browse the repository at this point in the history
  • Loading branch information
fzakaria committed Nov 4, 2023
1 parent 537915d commit a69413a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sqlelf/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,17 @@ def dwarf_dies_generator() -> Iterator[dict[str, Any]]:
DIE_t, DIE
) # annoying cast since iter_CUEs returns DIE_t | None
die_name = DIE.attributes.get("DW_AT_name", None)
low_pc, high_pc = determine_high_low_pc(DIE)
yield {
"path": binary_name,
"tag": DIE.tag,
"name": bytes2str(die_name.value) if die_name else None,
"low_pc": low_pc,
"high_pc": high_pc,
}

generator = Generator.make_generator(
["path", "tag", "name"],
["path", "tag", "name", "low_pc", "high_pc"],
dwarf_dies_generator,
)

Expand Down

0 comments on commit a69413a

Please sign in to comment.