llvm-mirror/test/tools/llvm-readobj/coff-debug-directory.test
Reid Kleckner e95b89db7a [COFF] Expose the PE debug data directory and dump it
This directory is used to find if there is a PDB associated with an
executable. I plan to use this functionality to teach llvm-symbolizer
whether it should use DIA or DWARF to symbolize a given DLL.

Reviewers: majnemer

Differential Revision: http://reviews.llvm.org/D20885

llvm-svn: 271539
2016-06-02 17:10:43 +00:00

35 lines
1.1 KiB
Plaintext

RUN: llvm-readobj -coff-debug-directory %p/Inputs/has_pdb.exe | FileCheck %s
CHECK: DebugDirectory [
CHECK: DebugEntry {
CHECK: Characteristics: 0x0
CHECK: TimeDateStamp: 2016-06-01 22:53:16 (0x574F675C)
CHECK: MajorVersion: 0x0
CHECK: MinorVersion: 0x0
CHECK: Type: CodeView (0x2)
CHECK: SizeOfData: 0x36
CHECK: AddressOfRawData: 0x5B068
CHECK: PointerToRawData: 0x5A268
CHECK: PDBInfo {
CHECK: PDBSignature: 0x53445352
CHECK: PDBGUID: (96 83 40 42 81 07 9D 40 90 1B 4A 3C 0D 4F 56 32)
CHECK: PDBAge: 3
CHECK: PDBFileName: D:\src\llvm\build\has_pdb.pdb
CHECK: }
CHECK: }
CHECK: DebugEntry {
CHECK: Characteristics: 0x0
CHECK: TimeDateStamp: 2016-06-01 22:53:16 (0x574F675C)
CHECK: MajorVersion: 0x0
CHECK: MinorVersion: 0x0
CHECK: Type: VCFeature (0xC)
CHECK: SizeOfData: 0x14
CHECK: AddressOfRawData: 0x5B0A0
CHECK: PointerToRawData: 0x5A2A0
CHECK: RawData (
CHECK: 0000: 00000000 C1000000 C1000000 00000000 |................|
CHECK: 0010: C0000000 |....|
CHECK: )
CHECK: }
CHECK: ]