I pushed both patches to mjw/print_loc_range_base and added the attached
quick testcase for readelf loc, ranges and -N and -U for debuginfo where
there are two CUs with different bases.
Let me know whether there are any more suggestions before I push this to
master.
Thanks,
Mark
commit 37b9e7631ad5c2c16d93bbda1b035bf86e906fa1
Author: Mark Wielaard <mjw(a)redhat.com>
Date: Wed Jan 30 11:04:38 2013 +0100
Add readelf test for --debug-dump=loc --debug-dump=ranges, -N and -U.
Signed-off-by: Mark Wielaard <mjw(a)redhat.com>
commit 80c2901d744006ccf355f7efff152a6461a4b7e9
Author: Mark Wielaard <mjw(a)redhat.com>
Date: Thu Jan 24 11:29:21 2013 +0100
readelf: Add -U, --unprocessed-values output control.
format_dwarf_addr () takes an extra argument 'raw' that is displayed
when the user requests unprocessed values output for DWARF data.
Signed-off-by: Mark Wielaard <mjw(a)redhat.com>
commit 9f13dc23998d202b7c72361acb056a551fd069bc
Author: Mark Wielaard <mjw(a)redhat.com>
Date: Fri Jan 18 22:19:08 2013 +0100
readelf: Add base to offsets in format_dwarf_addr for debug_loc/ranges.
Collect the base address of the CU while creating the listptr_tables
and use them when printing debug ranges and location entries with
format_dwarf_addr ().
Signed-off-by: Mark Wielaard <mjw(a)redhat.com>