Debian Codegraph @

src/lib/libdwarf/dw-linetableheader.txt

raw
1 Copyright (C) 2021. David Anderson.
2 This simple file is hereby placed in the Public Domain.
3
4 This file documents the arrangement of line table headers
5 across all Standard versions of DWARF and some special
6 experimental line tables.
7
8 Line Table Header variations.
9 The experimental version has a distinct version
10 number of 0xf006 so cannot be confused with DWARF4 or 5.
11
12 DWversion
13 2,3,4,5 meaning the DWARF standards
14 x meaning gcc's experimental two level line table.
15
16 2345x 1. unit_length (4 or 12 bytes)
17 2345x 2. version (2 bytes, for x is 0xF006)
18 5 2.1 address_size
19 5 2.2 segment_selector_size
20 2345x 3. header_length (4 or 8 bytes)
21 2345x 4. minimum_instruction_length (1 byte)
22 45 x 5. maximum_operations_per_instruction (1 byte)
23 2345x 6. default_is_stmt (1 byte)
24 2345x 7. line_base (1 byte)
25 2345x 8. line_range (1 byte)
26 2345x 9. opcode_base (1 byte)
27 2345x 10. standard_opcode_lengths (array of length opcode_base - 1)
28 234 x 11. include directories (for x just one NUL byte(empty list))
29 234 x 12. file_names (for x just one NUL byte(empty list))
30 x 13. fake_extended_op (5 bytes: 00 FF FF 7F 7F)
31 x 14. logicals_table_offset (4 or 8 bytes)
32 x 15. actuals_table_offset (4 or 8 bytes)
33 x5 16. directory_entry_format_count (1 byte)
34 x5 17. directory_entry_format (sequence of unsigned LEB128 pairs)
35 x5 18. directories_count (unsigned LEB128)
36 x5 19. directories (sequence of directory entries)
37 x5 20. file_name_entry_format_count (1 byte)
38 x5 21. file_name_entry_format (sequence of unsigned LEB128 pairs)
39 x5 22. file_names_count (unsigned LEB128)
40 x5 23. file_names (sequence of directory entries)
41 x 24. subprogram_entry_format_count (1 byte)
42 x 25. subprogram_entry_format (sequence of unsigned LEB128 pairs)
43 x 26. subprograms_count (unsigned LEB128)
44 x 27. subprograms (sequence of directory entries)