File: symbolize-filter-markup-data.test

package info (click to toggle)
llvm-toolchain-15 1%3A15.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,554,644 kB
  • sloc: cpp: 5,922,452; ansic: 1,012,136; asm: 674,362; python: 191,568; objc: 73,855; f90: 42,327; lisp: 31,913; pascal: 11,973; javascript: 10,144; sh: 9,421; perl: 7,447; ml: 5,527; awk: 3,523; makefile: 2,520; xml: 885; cs: 573; fortran: 567
file content (35 lines) | stat: -rw-r--r-- 1,000 bytes parent folder | download | duplicates (13)
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
REQUIRES: x86-registered-target
RUN: split-file %s %t
RUN: mkdir -p %t/.build-id/ab
RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t/asm.s \
RUN:   -o %t/.build-id/ab/cdef.debug
RUN: llvm-symbolizer --debug-file-directory=%t --filter-markup < %t/input \
RUN:   > %t.output 2> %t.err
RUN: FileCheck %s --input-file=%t.output --match-full-lines \
RUN:   --implicit-check-not {{.}}
RUN: FileCheck %s --check-prefix=ERR --input-file=%t.err --match-full-lines

CHECK: [[BEGIN:\[{3}]]ELF module #0x0 "a.o"; BuildID=abcdef [0x0-0x4](r),[0x10-0x11](r)[[END:\]{3}]]
CHECK: long long byte
CHECK: long byte
CHECK: [[BEGIN]]data:0x5[[END]]

ERR: error: expected 1 field(s); found 0
ERR: error: no mmap covers address

;--- input
{{{module:0:a.o:elf:abcdef}}}
{{{mmap:0:5:load:0:r:0}}}
{{{mmap:0x10:2:load:0:r:0x3}}}
{{{data:0x0}}} {{{data:0x1}}} {{{data:0x4}}}
{{{data:0x10}}} {{{data:0x11}}}

{{{data}}}
{{{data:0x5}}}
;--- asm.s
long:
  .long 0x11223344
  .size long, 4
byte:
  .byte 0x42
  .size byte, 1