File: debug_line_many_files_v5.s

package info (click to toggle)
llvm-toolchain-16 1%3A16.0.6-15~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,634,792 kB
  • sloc: cpp: 6,179,261; ansic: 1,216,205; asm: 741,319; python: 196,614; objc: 75,325; f90: 49,640; lisp: 32,396; pascal: 12,286; sh: 9,394; perl: 7,442; ml: 5,494; awk: 3,523; makefile: 2,723; javascript: 1,206; xml: 886; fortran: 581; cs: 573
file content (67 lines) | stat: -rw-r--r-- 2,126 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## An object with many files and directories in a single debug_line contribution
## meant to test the handling of directory_count and file_name_count fields.

# RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o %t
# RUN: llvm-dwarfdump -debug-line %t | FileCheck %s

# CHECK:      include_directories[  0] = "/d000"
# CHECK:      include_directories[299] = "/d299"
# CHECK:      file_names[  0]:
# CHECK-NEXT:            name: "000.c"
# CHECK-NEXT:       dir_index: 0
# CHECK:      file_names[299]:
# CHECK-NEXT:            name: "299.c"
# CHECK-NEXT:       dir_index: 299

.section .debug_line,"",@progbits
.long   .Lunit_end0-.Lunit_start0   # Length of Unit
.Lunit_start0:
.short  5               # DWARF version number
.byte   8               # Address Size
.byte   0               # Segment Selector Size
.long   .Lunit_header_end0 - .Lunit_params0 # Length of Prologue (invalid)
.Lunit_params0:
.byte   1               # Minimum Instruction Length
.byte   1               # Maximum Operations per Instruction
.byte   1               # Default is_stmt
.byte   -5              # Line Base
.byte   14              # Line Range
.byte   13              # Opcode Base
.byte   0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1 # Standard Opcode Lengths

# Directory table format
.byte   1               # One element per directory entry
.byte   1               # DW_LNCT_path
.byte   0x08            # DW_FORM_string

# Directory table entries
.uleb128 300            # 300 directories
.irpc a,012
.irpc b,0123456789
.irpc c,0123456789
.byte '/', 'd', '0'+\a, '0'+\b, '0'+\c, 0
.endr
.endr
.endr

# File table format
.byte   2               # 2 elements per file entry
.byte   1               # DW_LNCT_path
.byte   0x08            # DW_FORM_string
.byte   2               # DW_LNCT_directory_index
.byte   0x05            # DW_FORM_data2

# File table entries
.uleb128 300            # 300 files
.irpc a,012
.irpc b,0123456789
.irpc c,0123456789
.byte '0'+\a, '0'+\b, '0'+\c, '.', 'c', 0 # File name
.word \a*100+\b*10+\c   # Dir index
.endr
.endr
.endr

.Lunit_header_end0:
.byte   0, 1, 1         # DW_LNE_end_sequence
.Lunit_end0: