## Consistent PDB GUID in `llvm-readobj`
Currently, the PDB GUID is shown as a byte array:
`PDBGUID: (D8 4C 88 D9 26 15 1F 11 4C 4C 44 20 50 44 42 2E)`
This is inconsistent with `llvm-pdbutil` (e.g. `llvm-pdbutil dump
--summary`) which shows it as a hexadecimal string.
Additionally, `yaml2obj` uses the same hexadecimal string format.
In general, the hexadecimal string is the common representation for PDB
GUIDs on Windows.
This PR changes it to be consistent as shown below:
`PDBGUID: {D9884CD8-1526-111F-4C4C-44205044422E}`
35 lines
1.1 KiB
Plaintext
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: {42408396-0781-409D-901B-4A3C0D4F5632}
|
|
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: ]
|