diff options
| author | Mark Wielaard <[email protected]> | 2017-11-29 16:37:50 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-11-29 16:47:26 +0100 |
| commit | fbb6c932e3ff74d4fb8bc54b72d9c9bdc4513f69 (patch) | |
| tree | 4f2d5422a9762e892e1e84f65bd05bce316691e9 /tests/run-readelf-zdebug-rel.sh | |
| parent | 36eabdb739b16b934afe318c786a97c94b47bbf6 (diff) | |
readelf: Print CU, base address and unresolved .debug_loc entries.
Also adjust the formatting for the resolved addresses to print them
on separate lines so they nicely line up even when the addresses are
resolved to symbol+offset names. And print the operands starting on
a new line.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/run-readelf-zdebug-rel.sh')
| -rwxr-xr-x | tests/run-readelf-zdebug-rel.sh | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/run-readelf-zdebug-rel.sh b/tests/run-readelf-zdebug-rel.sh index 2b57d058..ccccd82d 100755 --- a/tests/run-readelf-zdebug-rel.sh +++ b/tests/run-readelf-zdebug-rel.sh @@ -127,12 +127,17 @@ cat info.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=i cat > loc.out << \EOF DWARF section [ 7] '.debug_loc' at offset 0x185: - [ 0] 000000000000000000..0x0000000000000003 [ 0] reg5 - 0x0000000000000003..0x0000000000000010 [ 0] breg5 -42 - [ 2] stack_value - 0x0000000000000010..0x0000000000000018 [ 0] GNU_entry_value: - [ 0] reg5 - [ 3] stack_value + + CU [ b] base: 000000000000000000 + [ 0] range 0, 3 + [ 0] reg5 + range 3, 10 + [ 0] breg5 -42 + [ 2] stack_value + range 10, 18 + [ 0] GNU_entry_value: + [ 0] reg5 + [ 3] stack_value EOF cat loc.out | testrun_compare ${abs_top_builddir}/src/readelf -U --debug-dump=loc testfile-debug-rel.o |
