Re: [PATCH] libdw: Add dwarf_die_addr_die function.

2018-02-13 Thread Mark Wielaard
On Thu, 2018-01-25 at 16:06 +0100, Mark Wielaard wrote: > Currently storing a lot of Dwarf_Dies might be inefficient since it > costs a lot of memory since the sizeof (Dwarf_Die) == 32 bytes on 64bit > arches. You can try storing just the Dwarf_Off from dwarf_dieoffset. > Which is just 8 bytes. But

[PATCH] libdw: Add dwarf_die_addr_die function.

2018-01-25 Thread Mark Wielaard
Currently storing a lot of Dwarf_Dies might be inefficient since it costs a lot of memory since the sizeof (Dwarf_Die) == 32 bytes on 64bit arches. You can try storing just the Dwarf_Off from dwarf_dieoffset. Which is just 8 bytes. But then you have to keep track of whether to call dwarf_dieoffset,