File: gen-dwarf64.s

package info (click to toggle)
llvm-toolchain-13 1%3A13.0.1-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,418,840 kB
  • sloc: cpp: 5,290,826; ansic: 996,570; asm: 544,593; python: 188,212; objc: 72,027; lisp: 30,291; f90: 25,395; sh: 24,898; javascript: 9,780; pascal: 9,398; perl: 7,484; ml: 5,432; awk: 3,523; makefile: 2,913; xml: 953; cs: 573; fortran: 539
file content (29 lines) | stat: -rw-r--r-- 1,209 bytes parent folder | download | duplicates (23)
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
// This checks that llvm-mc is able to produce 64-bit debug info.

// RUN: llvm-mc -g -dwarf64 -triple x86_64-apple-darwin10 %s -filetype=obj -o %t
// RUN: llvm-dwarfdump -v %t | FileCheck %s

// CHECK:      .debug_info contents:
// CHECK-NEXT: 0x00000000: Compile Unit: {{.*}} format = DWARF64, version = {{.*}}, abbr_offset = 0x0000, addr_size = 0x08
// CHECK:      DW_TAG_compile_unit [1] *
// CHECK-NEXT:   DW_AT_stmt_list [DW_FORM_sec_offset] (0x0000000000000000)
// CHECK:      DW_TAG_label [2]
// CHECK-NEXT:   DW_AT_name [DW_FORM_string] ("foo")

// CHECK:      .debug_frame contents:
// CHECK:      00000000 {{([[:xdigit:]]{16})}} ffffffffffffffff CIE
// CHECK-NEXT:   Format: DWARF64
// CHECK:      {{([[:xdigit:]]{8})}} {{([[:xdigit:]]{16})}} 0000000000000000 FDE cie=00000000 pc=00000000...00000001
// CHECK-NEXT:   Format: DWARF64

// CHECK:      .debug_aranges contents:
// CHECK-NEXT: Address Range Header: length = 0x0000000000000034, format = DWARF64, version = 0x0002, cu_offset = 0x0000000000000000, addr_size = 0x08, seg_size = 0x00
// CHECK-NEXT: [0x0000000000000000,  0x0000000000000001)
// CHECK-EMPTY:

    .cfi_sections .debug_frame

_foo:
    .cfi_startproc
    nop
    .cfi_endproc