mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
5eae90d727
by instruction address from DWARF. Add --inlining flag to llvm-dwarfdump to demonstrate and test this functionality, so that "llvm-dwarfdump --inlining --address=0x..." now works much like "addr2line -i 0x...", provided that the binary has debug info (Clang's -gline-tables-only *is* enough). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163128 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
1002 B
Plaintext
29 lines
1002 B
Plaintext
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x613 \
|
|
RUN: --inlining --functions | FileCheck %s -check-prefix DEEP_STACK
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x6de \
|
|
RUN: --inlining | FileCheck %s -check-prefix SHORTER_STACK
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x685 \
|
|
RUN: --inlining | FileCheck %s -check-prefix SHORT_STACK
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-inl-test.elf-x86-64 --address=0x640 \
|
|
RUN: --functions | FileCheck %s -check-prefix INL_FUNC_NAME
|
|
|
|
DEEP_STACK: inlined_h
|
|
DEEP_STACK-NEXT: header.h:2:21
|
|
DEEP_STACK-NEXT: inlined_g
|
|
DEEP_STACK-NEXT: header.h:7
|
|
DEEP_STACK-NEXT: inlined_f
|
|
DEEP_STACK-NEXT: main.cc:3
|
|
DEEP_STACK-NEXT: main
|
|
DEEP_STACK-NEXT: main.cc:8
|
|
|
|
SHORTER_STACK: header.h:7:20
|
|
SHORTER_STACK-NEXT: main.cc:3
|
|
SHORTER_STACK-NEXT: main.cc:8
|
|
|
|
SHORT_STACK: main.cc:3:20
|
|
SHORT_STACK-NEXT: main.cc:8
|
|
|
|
INL_FUNC_NAME: inlined_g
|
|
INL_FUNC_NAME-NEXT: header.h:7:20
|
|
|