diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-01-25 22:50:58 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-01-25 22:50:58 +0000 |
commit | ee7c0d2f931590ccdc53a14b1839e11bb29fc96e (patch) | |
tree | 691f74c6f15436cdeacf8fa67089c34071a00460 /test | |
parent | c73b7f702258b844dc2702fd9d79d8a8706460a7 (diff) | |
download | external_llvm-ee7c0d2f931590ccdc53a14b1839e11bb29fc96e.zip external_llvm-ee7c0d2f931590ccdc53a14b1839e11bb29fc96e.tar.gz external_llvm-ee7c0d2f931590ccdc53a14b1839e11bb29fc96e.tar.bz2 |
Add support for applying in-memory relocations to the .debug_line section and, in the case of ELF files, using symbol addresses when available for relocations to the .debug_info section. Also extending the llvm-rtdyld tool to add the ability to dump line number information for testing purposes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173517 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/Inputs/test-inline.o | bin | 0 -> 6040 bytes | |||
-rw-r--r-- | test/DebugInfo/debuglineinfo.test | 15 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/DebugInfo/Inputs/test-inline.o b/test/DebugInfo/Inputs/test-inline.o Binary files differnew file mode 100644 index 0000000..a650c91 --- /dev/null +++ b/test/DebugInfo/Inputs/test-inline.o diff --git a/test/DebugInfo/debuglineinfo.test b/test/DebugInfo/debuglineinfo.test new file mode 100644 index 0000000..78de390 --- /dev/null +++ b/test/DebugInfo/debuglineinfo.test @@ -0,0 +1,15 @@ +RUN: llvm-rtdyld -printline %p/Inputs/test-inline.o \ +RUN: | FileCheck %s -check-prefix TEST_INLINE + +; This test verifies that relocations are correctly applied to the +; .debug_line section. If relocations are not applied the first two +; functions will be reported as both starting at address zero in the +; line number table. +TEST_INLINE: Function: _Z15test_parametersPfPA2_dR11char_structPPitm, Size = 170 +TEST_INLINE-NEXT: Line info:test-inline.cpp, line:33 +TEST_INLINE-NEXT: Function: _Z3foov, Size = 3 +TEST_INLINE-NEXT: Line info:test-inline.cpp, line:28 +TEST_INLINE-NEXT: Function: main, Size = 146 +TEST_INLINE-NEXT: Line info:test-inline.cpp, line:39 + + |