diff options
| author | Frederic Riss <friss@apple.com> | 2015-03-15 01:29:30 +0000 |
|---|---|---|
| committer | Frederic Riss <friss@apple.com> | 2015-03-15 01:29:30 +0000 |
| commit | 912d0f1261d0a56cc7a8a23d83dfb03b11597c19 (patch) | |
| tree | 55b48bd985a3726c3ef2f87caf3c16e0bad6046c /llvm/test/tools | |
| parent | 25cf28fd7b1920dc3a92cc6f7c846a949d127dea (diff) | |
| download | bcm5719-llvm-912d0f1261d0a56cc7a8a23d83dfb03b11597c19.tar.gz bcm5719-llvm-912d0f1261d0a56cc7a8a23d83dfb03b11597c19.zip | |
[dsymutil] Add function size to the debug map.
The debug map embedded by ld64 in binaries conatins function sizes.
These sizes are less precise than the ones given by the debug information
(byte granularity vs linker atom granularity), but they might cover code
that is referenced in the line table but not in the DIE tree (that might
very well be a compiler bug that I need to investigate later).
Anyway, extracting that information is necessary to be able to mimic
dsymutil's behavior exactly.
llvm-svn: 232300
Diffstat (limited to 'llvm/test/tools')
| -rw-r--r-- | llvm/test/tools/dsymutil/debug-map-parsing.test | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/llvm/test/tools/dsymutil/debug-map-parsing.test b/llvm/test/tools/dsymutil/debug-map-parsing.test index b64ad9ff2e4..3422316191f 100644 --- a/llvm/test/tools/dsymutil/debug-map-parsing.test +++ b/llvm/test/tools/dsymutil/debug-map-parsing.test @@ -10,16 +10,16 @@ Check that We can parse the debug map of the basic executable. CHECK-NOT: error CHECK: DEBUG MAP: x86_64-unknown-unknown-macho CHECK: /Inputs/basic1.macho.x86_64.o: -CHECK: 0000000000000000 => 0000000100000ea0 _main +CHECK: 0000000000000000 => 0000000100000ea0+0x24 _main CHECK: /Inputs/basic2.macho.x86_64.o: -CHECK: 0000000000000310 => 0000000100001000 _baz -CHECK: 0000000000000020 => 0000000100000ed0 _foo -CHECK: 0000000000000070 => 0000000100000f20 _inc -CHECK: 0000000000000560 => 0000000100001008 _private_int +CHECK: 0000000000000310 => 0000000100001000+0x0 _baz +CHECK: 0000000000000020 => 0000000100000ed0+0x50 _foo +CHECK: 0000000000000070 => 0000000100000f20+0x17 _inc +CHECK: 0000000000000560 => 0000000100001008+0x0 _private_int CHECK: /Inputs/basic3.macho.x86_64.o: -CHECK: 0000000000000020 => 0000000100000f40 _bar -CHECK: 0000000000000070 => 0000000100000f90 _inc -CHECK: 0000000000000004 => 0000000100001004 _val +CHECK: 0000000000000020 => 0000000100000f40+0x50 _bar +CHECK: 0000000000000070 => 0000000100000f90+0x19 _inc +CHECK: 0000000000000004 => 0000000100001004+0x0 _val CHECK: END DEBUG MAP @@ -28,12 +28,12 @@ Check that we can parse the debug-map of the basic-lto executable CHECK-LTO-NOT: error CHECK-LTO: DEBUG MAP: x86_64-unknown-unknown-macho CHECK-LTO: /Inputs/basic-lto.macho.x86_64.o: -CHECK-LTO: 0000000000000050 => 0000000100000f90 _bar -CHECK-LTO: 0000000000000658 => 0000000100001000 _baz -CHECK-LTO: 0000000000000010 => 0000000100000f50 _foo -CHECK-LTO: 0000000000000000 => 0000000100000f40 _main -CHECK-LTO: 00000000000008e8 => 0000000100001008 _private_int -CHECK-LTO: 00000000000008ec => 0000000100001004 _val +CHECK-LTO: 0000000000000050 => 0000000100000f90+0x24 _bar +CHECK-LTO: 0000000000000658 => 0000000100001000+0x0 _baz +CHECK-LTO: 0000000000000010 => 0000000100000f50+0x40 _foo +CHECK-LTO: 0000000000000000 => 0000000100000f40+0x10 _main +CHECK-LTO: 00000000000008e8 => 0000000100001008+0x0 _private_int +CHECK-LTO: 00000000000008ec => 0000000100001004+0x0 _val CHECK-LTO: END DEBUG MAP Check thet we correctly handle debug maps with archive members (including only @@ -51,16 +51,16 @@ CHECK-ARCHIVE-NEXT: found member in current archive. CHECK-ARCHIVE: DEBUG MAP: x86_64-unknown-unknown-macho CHECK-ARCHIVE: object addr => executable addr symbol name CHECK-ARCHIVE: /Inputs/basic1.macho.x86_64.o: -CHECK-ARCHIVE: 0000000000000000 => 0000000100000ea0 _main +CHECK-ARCHIVE: 0000000000000000 => 0000000100000ea0+0x24 _main CHECK-ARCHIVE: /Inputs/./libbasic.a(basic2.macho.x86_64.o): -CHECK-ARCHIVE: 0000000000000310 => 0000000100001000 _baz -CHECK-ARCHIVE: 0000000000000020 => 0000000100000ed0 _foo -CHECK-ARCHIVE: 0000000000000070 => 0000000100000f20 _inc -CHECK-ARCHIVE: 0000000000000560 => 0000000100001004 _private_int +CHECK-ARCHIVE: 0000000000000310 => 0000000100001000+0x0 _baz +CHECK-ARCHIVE: 0000000000000020 => 0000000100000ed0+0x50 _foo +CHECK-ARCHIVE: 0000000000000070 => 0000000100000f20+0x17 _inc +CHECK-ARCHIVE: 0000000000000560 => 0000000100001004+0x0 _private_int CHECK-ARCHIVE: /Inputs/./libbasic.a(basic3.macho.x86_64.o): -CHECK-ARCHIVE: 0000000000000020 => 0000000100000f40 _bar -CHECK-ARCHIVE: 0000000000000070 => 0000000100000f90 _inc -CHECK-ARCHIVE: 0000000000000004 => 0000000100001008 _val +CHECK-ARCHIVE: 0000000000000020 => 0000000100000f40+0x50 _bar +CHECK-ARCHIVE: 0000000000000070 => 0000000100000f90+0x19 _inc +CHECK-ARCHIVE: 0000000000000004 => 0000000100001008+0x0 _val CHECK-ARCHIVE: END DEBUG MAP Check that we warn about missing object files (this presumes that the files aren't |

