-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SymbolVendorELF: Perform build-id lookup even without a debug link
Summary: The debug link and build-id lookups are two independent ways one can search for a separate symbol file. However, our implementation in SymbolVendorELF was tying the two together and refusing to look up the symbol file based on a build id if the file did not contain a debug link. This patch makes it possible to search for the symbol file with just one of the two methods available. To demonstrate, I split the build-id-case test into two, so that we test the search using both methods. Reviewers: jankratochvil, mgorny, clayborg, espindola, alexshap Subscribers: emaste, arichardson, MaskRay, lldb-commits Differential Revision: https://reviews.llvm.org/D65561 llvm-svn: 367994
- Loading branch information
Showing
4 changed files
with
121 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# RUN: yaml2obj %s > %t | ||
# RUN: llvm-objcopy --strip-all --add-gnu-debuglink=%t %t %t.stripped | ||
# RUN: lldb-test object-file %t.stripped | FileCheck %s | ||
|
||
# CHECK: Name: .debug_frame | ||
# CHECK-NEXT: Type: dwarf-frame | ||
|
||
--- !ELF | ||
FileHeader: | ||
Class: ELFCLASS64 | ||
Data: ELFDATA2LSB | ||
Type: ET_EXEC | ||
Machine: EM_X86_64 | ||
Entry: 0x00000000004003D0 | ||
Sections: | ||
- Name: .text | ||
Type: SHT_PROGBITS | ||
Flags: [ SHF_ALLOC, SHF_EXECINSTR ] | ||
Address: 0x00000000004003D0 | ||
AddressAlign: 0x0000000000000010 | ||
Content: DEADBEEFBAADF00D | ||
- Name: .debug_frame | ||
Type: SHT_PROGBITS | ||
AddressAlign: 0x0000000000000008 | ||
Content: DEADBEEFBAADF00D | ||
Symbols: | ||
- Name: main | ||
Type: STT_FUNC | ||
Section: .text | ||
Value: 0x00000000004003D0 | ||
Size: 0x0000000000000008 | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters