summaryrefslogtreecommitdiffstats
path: root/tests/run-readelf-zdebug-rel.sh
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2017-11-29 15:43:26 +0100
committerMark Wielaard <[email protected]>2017-11-29 15:57:24 +0100
commit704f5fc477efaf120980449e677deb563da8491f (patch)
treeeb5fcf5a32df412dbf66894ddc6305a9eba7c2ec /tests/run-readelf-zdebug-rel.sh
parent268a27211b152d876185ff95255e5025c43b9c13 (diff)
readelf: Adjust print_ops formatting.
Use only 2 spaces for index (there are never 10000, the most seen in the wild is 64). Adjust re-indenting after GNU_entry_value. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'tests/run-readelf-zdebug-rel.sh')
-rwxr-xr-xtests/run-readelf-zdebug-rel.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/run-readelf-zdebug-rel.sh b/tests/run-readelf-zdebug-rel.sh
index 1232d63b..082971e0 100755
--- a/tests/run-readelf-zdebug-rel.sh
+++ b/tests/run-readelf-zdebug-rel.sh
@@ -69,7 +69,7 @@ DWARF section [ 4] '.debug_info' at offset 0x58:
low_pc (addr) 000000000000000000
high_pc (data8) 24 (0x0000000000000018)
frame_base (exprloc)
- [ 0] call_frame_cfa
+ [ 0] call_frame_cfa
GNU_all_call_sites (flag_present) yes
sibling (ref4) [ 80]
[ 4e] formal_parameter
@@ -84,7 +84,7 @@ DWARF section [ 4] '.debug_info' at offset 0x58:
decl_line (data1) 4
type (ref4) [ 87]
location (exprloc)
- [ 0] reg4
+ [ 0] reg4
[ 6a] variable
name (string) "a"
decl_file (data1) 1
@@ -97,7 +97,7 @@ DWARF section [ 4] '.debug_info' at offset 0x58:
decl_line (data1) 7
type (ref4) [ 9a]
location (exprloc)
- [ 0] reg5
+ [ 0] reg5
[ 80] base_type
byte_size (data1) 4
encoding (data1) signed (5)
@@ -127,12 +127,12 @@ 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
+ [ 0] 000000000000000000..0x0000000000000003 [ 0] reg5
+ 0x0000000000000003..0x0000000000000010 [ 0] breg5 -42
+ [ 2] stack_value
+ 0x0000000000000010..0x0000000000000018 [ 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