File: debug_ranges_and_rnglists.test

package info (click to toggle)
llvm-toolchain-11 1%3A11.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 995,808 kB
  • sloc: cpp: 4,767,656; ansic: 760,916; asm: 477,436; python: 170,940; objc: 69,804; lisp: 29,914; sh: 23,855; f90: 18,173; pascal: 7,551; perl: 7,471; ml: 5,603; awk: 3,489; makefile: 2,573; xml: 915; cs: 573; fortran: 503; javascript: 452
file content (18 lines) | stat: -rw-r--r-- 915 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# REQUIRES: lld

# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_ranges.s > %t-ranges.o
# RUN: llvm-mc -triple=x86_64-pc-linux -filetype=obj %S/debug_rnglists.s > %t-rnglists.o
# RUN: ld.lld -r %t-ranges.o %t-rnglists.o -o %t
# RUN: %lldb %t -s %s | FileCheck %s

image lookup -v -s lookup_ranges
# CHECK-LABEL: image lookup -v -s lookup_ranges
# CHECK:  Function: {{.*}} name = "ranges", range = [0x0000000000000000-0x0000000000000004)
# CHECK:    Blocks: {{.*}} range = [0x00000000-0x00000004)
# CHECK-NEXT:       {{.*}} ranges = [0x00000001-0x00000002)[0x00000003-0x00000004)

image lookup -v -s lookup_rnglists
# CHECK-LABEL: image lookup -v -s lookup_rnglists
# CHECK:  Function: {{.*}} name = "rnglists", range = [0x0000000000001000-0x0000000000001004)
# CHECK:    Blocks: {{.*}} range = [0x00001000-0x00001004)
# CHECK-NEXT:       {{.*}} ranges = [0x00001001-0x00001002)[0x00001003-0x00001004)