summaryrefslogtreecommitdiff
path: root/tests/run-readelf-zdebug.sh
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2018-04-26 11:53:49 +0200
committerMark Wielaard <mark@klomp.org>2018-05-15 11:25:27 +0200
commit6ed8b94952ddf155960c799ef76f3048f033e873 (patch)
treeb9270241542b3575e08f3639829137dee8caaa67 /tests/run-readelf-zdebug.sh
parentb9c76ded0f07d270bbb9314fb970bb0afcb71d58 (diff)
downloadelfutils-6ed8b94952ddf155960c799ef76f3048f033e873.tar.gz
readelf: Add DWARF5 .debug_line support.
This only changes the parsing of the directory and file name tables. It does this by sharing the printing of (non-CU based) from data from the .debug_macro code. Adding support for printing strx[1234] form data by sharing the code that detects the correct str_offsets_base in libdw. The header format is also cleaned up a bit so that it better lines out. Testcases adjusted and new ones added. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/run-readelf-zdebug.sh')
-rwxr-xr-xtests/run-readelf-zdebug.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/run-readelf-zdebug.sh b/tests/run-readelf-zdebug.sh
index 28128ad9..878e0ba8 100755
--- a/tests/run-readelf-zdebug.sh
+++ b/tests/run-readelf-zdebug.sh
@@ -361,15 +361,17 @@ DWARF section [34] '.debug_line' at offset 0x104c:
Table at offset 0:
- Length: 70
- DWARF version: 2
- Prologue length: 40
- Minimum instruction length: 1
- Maximum operations per instruction: 1
- Initial value if 'is_stmt': 1
- Line base: -5
- Line range: 14
- Opcode base: 13
+ Length: 70
+ DWARF version: 2
+ Prologue length: 40
+ Address size: 8
+ Segment selector size: 0
+ Min instruction length: 1
+ Max operations per instruction: 1
+ Initial value if 'is_stmt': 1
+ Line base: -5
+ Line range: 14
+ Opcode base: 13
Opcodes:
[ 1] 0 arguments