2012-07-02 05:54:45 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x400559 --functions | FileCheck %s -check-prefix MAIN
|
2012-07-02 05:54:45 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x400528 --functions | FileCheck %s -check-prefix FUNCTION
|
2012-07-02 05:54:45 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test.elf-x86-64 \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x400586 --functions | FileCheck %s -check-prefix CTOR_WITH_SPEC
|
2012-07-02 05:54:45 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test2.elf-x86-64 \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x4004e8 --functions | FileCheck %s -check-prefix MANY_CU_1
|
2012-07-02 05:54:45 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test2.elf-x86-64 \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x4004f4 --functions | FileCheck %s -check-prefix MANY_CU_2
|
2013-04-05 09:22:24 +00:00
|
|
|
RUN: llvm-dwarfdump "%p/Inputs/dwarfdump-test3.elf-x86-64 space" \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x640 --functions | FileCheck %s -check-prefix ABS_ORIGIN_1
|
2013-04-05 09:22:24 +00:00
|
|
|
RUN: llvm-dwarfdump "%p/Inputs/dwarfdump-test3.elf-x86-64 space" \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x633 --functions | FileCheck %s -check-prefix INCLUDE_TEST_1
|
2013-04-05 09:22:24 +00:00
|
|
|
RUN: llvm-dwarfdump "%p/Inputs/dwarfdump-test3.elf-x86-64 space" \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x62d --functions | FileCheck %s -check-prefix INCLUDE_TEST_2
|
2012-08-07 11:46:57 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test4.elf-x86-64 \
|
2013-02-08 14:34:33 +00:00
|
|
|
RUN: --address=0x62c --functions \
|
2012-08-07 11:46:57 +00:00
|
|
|
RUN: | FileCheck %s -check-prefix MANY_SEQ_IN_LINE_TABLE
|
2012-08-27 07:17:47 +00:00
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test4.elf-x86-64 \
|
|
|
|
RUN: | FileCheck %s -check-prefix DEBUG_RANGES
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
MAIN: main
|
2013-02-08 14:34:33 +00:00
|
|
|
MAIN-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:16
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
FUNCTION: _Z1fii
|
2013-02-08 14:34:33 +00:00
|
|
|
FUNCTION-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:11
|
2012-07-02 05:54:45 +00:00
|
|
|
|
2013-02-08 14:34:33 +00:00
|
|
|
CTOR_WITH_SPEC: DummyClass
|
|
|
|
CTOR_WITH_SPEC-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test.cc:4
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
MANY_CU_1: a
|
2013-02-08 14:34:33 +00:00
|
|
|
MANY_CU_1-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test2-helper.cc:2
|
2012-07-02 05:54:45 +00:00
|
|
|
|
|
|
|
MANY_CU_2: main
|
2013-02-08 14:34:33 +00:00
|
|
|
MANY_CU_2-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test2-main.cc:4
|
2012-07-17 15:28:35 +00:00
|
|
|
|
|
|
|
ABS_ORIGIN_1: C
|
2013-02-08 14:34:33 +00:00
|
|
|
ABS_ORIGIN_1-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test3.cc:3
|
2012-07-19 07:03:58 +00:00
|
|
|
|
2013-02-08 14:34:33 +00:00
|
|
|
INCLUDE_TEST_1: _Z3do1v
|
|
|
|
INCLUDE_TEST_1-NEXT: /tmp/include{{[/\\]}}dwarfdump-test3-decl.h:7
|
2012-07-19 07:03:58 +00:00
|
|
|
|
2013-02-08 14:34:33 +00:00
|
|
|
INCLUDE_TEST_2: _Z3do2v
|
|
|
|
INCLUDE_TEST_2-NEXT: /tmp/dbginfo{{[/\\]}}include{{[/\\]}}dwarfdump-test3-decl2.h:1
|
2012-08-07 11:46:57 +00:00
|
|
|
|
|
|
|
MANY_SEQ_IN_LINE_TABLE: _Z1cv
|
2013-02-08 14:34:33 +00:00
|
|
|
MANY_SEQ_IN_LINE_TABLE-NEXT: /tmp/dbginfo{{[/\\]}}dwarfdump-test4-part1.cc:2
|
2012-08-27 07:17:47 +00:00
|
|
|
|
|
|
|
DEBUG_RANGES: .debug_ranges contents:
|
2013-02-08 14:34:33 +00:00
|
|
|
DEBUG_RANGES-NEXT: 00000000 000000000000062c 0000000000000637
|
|
|
|
DEBUG_RANGES-NEXT: 00000000 0000000000000637 000000000000063d
|
2012-08-27 07:17:47 +00:00
|
|
|
DEBUG_RANGES-NEXT: 00000000 <End of list>
|
2013-02-08 14:34:33 +00:00
|
|
|
DEBUG_RANGES-NEXT: 00000030 0000000000000640 000000000000064b
|
|
|
|
DEBUG_RANGES-NEXT: 00000030 0000000000000637 000000000000063d
|
2012-08-27 07:17:47 +00:00
|
|
|
DEBUG_RANGES-NEXT: 00000030 <End of list>
|