2012-07-02 05:54:45 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
|
|
|
RUN: --address=0x400589 --functions | FileCheck %s -check-prefix MAIN
|
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
|
|
|
RUN: --address=0x400558 --functions | FileCheck %s -check-prefix FUNCTION
|
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
|
|
|
RUN: --address=0x4005b6 --functions | FileCheck %s -check-prefix CTOR_WITH_SPEC
|
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test2.elf-x86-64 \
|
|
|
|
RUN: --address=0x4004b8 --functions | FileCheck %s -check-prefix MANY_CU_1
|
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test2.elf-x86-64 \
|
|
|
|
RUN: --address=0x4004c4 --functions | FileCheck %s -check-prefix MANY_CU_2
|
2012-07-17 15:28:35 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test3.elf-x86-64 \
|
2012-07-19 07:03:58 +00:00
|
|
|
RUN: --address=0x580 --functions | FileCheck %s -check-prefix ABS_ORIGIN_1
|
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test3.elf-x86-64 \
|
|
|
|
RUN: --address=0x573 --functions | FileCheck %s -check-prefix INCLUDE_TEST_1
|
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test3.elf-x86-64 \
|
|
|
|
RUN: --address=0x56d --functions | FileCheck %s -check-prefix INCLUDE_TEST_2
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
MAIN: main
|
2012-07-19 13:40:09 +00:00
|
|
|
MAIN-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16:10
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
FUNCTION: _Z1fii
|
2012-07-19 13:40:09 +00:00
|
|
|
FUNCTION-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:11:18
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
CTOR_WITH_SPEC: _ZN10DummyClassC1Ei
|
2012-07-19 13:40:09 +00:00
|
|
|
CTOR_WITH_SPEC-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:4:30
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
MANY_CU_1: a
|
2012-07-19 13:40:09 +00:00
|
|
|
MANY_CU_1-NEXT: /tmp/dbginfo{{[/\\]}}a.cc:2:0
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
MANY_CU_2: main
|
2012-07-19 13:40:09 +00:00
|
|
|
MANY_CU_2-NEXT: /tmp/dbginfo{{[/\\]}}main.cc:4:0
|
2012-07-17 15:28:35 +00:00
|
|
|
|
|
|
|
ABS_ORIGIN_1: C
|
2012-07-19 13:40:09 +00:00
|
|
|
ABS_ORIGIN_1-NEXT: /tmp/dbginfo{{[/\\]}}def2.cc:4:0
|
2012-07-19 07:03:58 +00:00
|
|
|
|
|
|
|
INCLUDE_TEST_1: _Z3do2v
|
2012-07-19 13:40:09 +00:00
|
|
|
INCLUDE_TEST_1-NEXT: /tmp/dbginfo{{[/\\]}}include{{[/\\]}}decl2.h:1:0
|
2012-07-19 07:03:58 +00:00
|
|
|
|
|
|
|
INCLUDE_TEST_2: _Z3do1v
|
2012-07-19 13:40:09 +00:00
|
|
|
INCLUDE_TEST_2-NEXT: /tmp/include{{[/\\]}}decl.h:5:0
|