File: gen-dwarf64.s

package info (click to toggle)
llvm-toolchain-20 1%3A20.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,111,696 kB
  • sloc: cpp: 7,438,781; ansic: 1,393,871; asm: 1,012,926; python: 241,771; f90: 86,635; objc: 75,411; lisp: 42,144; pascal: 17,286; sh: 8,596; ml: 5,082; perl: 4,730; makefile: 3,591; awk: 3,523; javascript: 2,251; xml: 892; fortran: 672
file content (29 lines) | stat: -rw-r--r-- 1,209 bytes parent folder | download | duplicates (28)
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