brintos

brintos / llvm-project-archived public Read only

0
0
Text · 5.5 KiB · 881f71d Raw
108 lines · plain
1# NB: The minidump core file exists only because "image show-unwind" currently2# requires a process to exist. If that changes, it can be removed.3 4# REQUIRES: x86, lld5 6# RUN: split-file %s %t7# RUN: yaml2obj %t/a.core.yaml -o %t/a.core8# RUN: %clang -c --target=x86_64-pc-linux %t/a.s -o %t/a.o9# RUN: ld.lld --shared %t/a.o -o %t/a.debug --build-id=0xdeadbeef \10# RUN:   --image-base=0x1000011# RUN: llvm-objcopy --strip-all %t/a.debug %t/a.stripped12# RUN: cd %t13# RUN: %lldb -c %t/a.core \14# RUN:   -o "settings set interpreter.stop-command-source-on-error false" \15# RUN:   -s %t/commands -o quit | FileCheck %s16 17#--- commands18 19image add a.stripped20image load --file a.stripped --slide 021image list22# CHECK-LABEL: image list23# CHECK: [  0] DEADBEEF 0x0000000000010000 a.stripped24 25## Due to missing symbol information this (incorrectly) prints the unwind26## information for public_fn127image show-unwind -n public_fn1 --cached true28# CHECK-LABEL: image show-unwind -n public_fn129# CHECK-NEXT: UNWIND PLANS for a.stripped`public_fn1 (start addr 0x12000)30# CHECK-NOT: debug_frame UnwindPlan:31 32target symbols add -s a.stripped a.debug33# CHECK-LABEL: target symbols add34# CHECK: symbol file {{.*}} has been added to {{.*}}35 36image show-unwind -n private_fn --cached true37# CHECK-LABEL: image show-unwind -n private_fn38# CHECK-NEXT: UNWIND PLANS for a.stripped`private_fn (start addr 0x12010)39# CHECK: debug_frame UnwindPlan:40# CHECK-NEXT: This UnwindPlan originally sourced from DWARF CFI41# CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes.42# CHECK-NEXT: This UnwindPlan is valid at all instruction locations: no.43# CHECK-NEXT: This UnwindPlan is for a trap handler function: no.44# CHECK-NEXT: Address range of this UnwindPlan: [a.stripped.PT_LOAD[1]..text + 16-19)45 46 47#--- a.s48 49        .text50        .cfi_sections .debug_frame51        .globl  public_fn1, public_fn252 53        .p2align 1254public_fn1:55        .cfi_startproc56        pushq   %rbp57        .cfi_def_cfa_offset 1658        .cfi_offset %rbp, -1659        popq    %rbp60        .cfi_def_cfa %rsp, 861        retq62        .cfi_endproc63 64        .p2align 465private_fn:66        .cfi_startproc67        pushq   %rbp68        .cfi_def_cfa_offset 1669        .cfi_offset %rbp, -1670        popq    %rbp71        .cfi_def_cfa %rsp, 872        retq73        .cfi_endproc74 75        .p2align 476public_fn2:77        .cfi_startproc78        pushq   %rbp79        .cfi_def_cfa_offset 1680        .cfi_offset %rbp, -1681        popq    %rbp82        .cfi_def_cfa %rsp, 883        retq84        .cfi_endproc85 86#--- a.core.yaml87--- !minidump88Streams:89  - Type:            SystemInfo90    Processor Arch:  AMD6491    Platform ID:     Linux92    CPU:93      Vendor ID:       GenuineIntel94      Version Info:    0x0000000095      Feature Info:    0x0000000096  - Type:            ThreadList97    Threads:98      - Thread Id:       0x000074F399        Context:         0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B001000000000006CAE000000006B7FC05A0000C81D415A0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A2BF9E5A6B7F0000000000000000000000000000000000008850C14BFD7F00009850C14BFD7F00000100000000000000B04AC14BFD7F0000000000000000000060812D01000000000800000000000000B065E05A6B7F00008004400000000000E050C14BFD7F00000000000000000000000000000000000004400000000000007F03FFFF0000FFFFFFFFFFFF000000000000000000000000801F00006B7F00000400000000000000B84CC14BFD7F0000304D405A6B7F0000C84DC14BFD7F0000C0AA405A6B7F00004F033D0000000000B84DC14BFD7F0000E84DC14BFD7F0000000000000000000000000000000000000070E05A6B7F000078629E5A6B7F0000C81D415A6B7F0000804F9E5A6B7F00000000000001000000E603000001000000E093115A6B7F0000804EC14BFD7F0000584EC14BFD7F000099ADC05A6B7F00000100000000000000AAAAD77D0000000002000000000000000800000000000000B065E05A6B7F0000E6B7C05A6B7F0000010000006B7F0000884DC14BFD7F0000106F7C5A6B7F0000984EC14BFD7F0000488B7C5A6B7F0000C4A71CB90000000001000000000000000800000000000000B065E05A6B7F000048B6C05A6B7F0000702AE25A6B7F0000D84DC14BFD7F000030489E5A6B7F0000E84EC14BFD7F0000E05E9E5A6B7F00000991F0460000000001000000000000000800000000000000B065E05A6B7F000048B6C05A6B7F00000100000000000000284EC14BFD7F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100        Stack:101          Start of Memory Range: 0x00007FFD4BC15080102          Content:         30044000000000000000000000000000103  - Type:            MemoryList104    Memory Ranges:105      - Start of Memory Range: 0x00007FFD4BC15080106        Content:         30044000000000000000000000000000107...108