Re: [PATCH] DWARF calculate the number of indexed addresses.

2018-05-14 Thread Jeff Law
On 05/14/2018 07:36 AM, Mark Wielaard wrote: > The length in the .debug_addr unit header was calculated using the number > of elements in the addr_index_table. This is wrong because the entries in > the table are refcounted and only those with a refcount > 0 are actually > put in the index. Add a h

[PATCH] DWARF calculate the number of indexed addresses.

2018-05-14 Thread Mark Wielaard
The length in the .debug_addr unit header was calculated using the number of elements in the addr_index_table. This is wrong because the entries in the table are refcounted and only those with a refcount > 0 are actually put in the index. Add a helper function count_index_addrs to get the correct n