File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
test/tools/llvm-readobj/COFF Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 60
60
# CHECK: PointerToRawData: 0x{{[^0]}}
61
61
# CHECK: PDBInfo {
62
62
# CHECK: PDBSignature: 0x53445352
63
- # CHECK: PDBGUID: [[GUID:\(( [A-Za-z0-9]{2} ?){16}\) ]]
63
+ # CHECK: PDBGUID: [[GUID:\{ [A-Za-z0-9\-]{36}\} ]]
64
64
# CHECK: PDBAge: 1
65
65
# CHECK: PDBFileName: {{.*}}.pdb
66
66
# CHECK: }
99
99
# TWOPDBS: PointerToRawData: 0x{{[^0]}}
100
100
# TWOPDBS: PDBInfo {
101
101
# TWOPDBS: PDBSignature: 0x53445352
102
- # TWOPDBS: PDBGUID: [[GUID:\(( [A-Za-z0-9]{2} ?){16}\) ]]
102
+ # TWOPDBS: PDBGUID: [[GUID:\{ [A-Za-z0-9\-]{36}\} ]]
103
103
# TWOPDBS: PDBAge: 1
104
104
# TWOPDBS: PDBFileName: {{.*}}.pdb
105
105
# TWOPDBS: }
182
182
# BUILDID: PointerToRawData: 0x{{[^0]}}
183
183
# BUILDID: PDBInfo {
184
184
# BUILDID: PDBSignature: 0x53445352
185
- # BUILDID: PDBGUID: [[GUID:\(( [A-Za-z0-9]{2} ?){16}\) ]]
185
+ # BUILDID: PDBGUID: [[GUID:\{ [A-Za-z0-9\-]{36}\} ]]
186
186
# BUILDID: PDBAge: 1
187
187
# BUILDID: PDBFileName:
188
188
# BUILDID: }
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ CHECK: AddressOfRawData: 0x5B068
12
12
CHECK: PointerToRawData: 0x5A268
13
13
CHECK: PDBInfo {
14
14
CHECK: PDBSignature: 0x53445352
15
- CHECK: PDBGUID: (96 83 40 42 81 07 9D 40 90 1B 4A 3C 0D 4F 56 32)
15
+ CHECK: PDBGUID: {42408396-0781-409D-901B-4A3C0D4F5632}
16
16
CHECK: PDBAge: 3
17
17
CHECK: PDBFileName: D:\src\llvm\build\has_pdb.pdb
18
18
CHECK: }
Original file line number Diff line number Diff line change 27
27
#include " llvm/DebugInfo/CodeView/DebugInlineeLinesSubsection.h"
28
28
#include " llvm/DebugInfo/CodeView/DebugLinesSubsection.h"
29
29
#include " llvm/DebugInfo/CodeView/DebugStringTableSubsection.h"
30
+ #include " llvm/DebugInfo/CodeView/Formatters.h"
30
31
#include " llvm/DebugInfo/CodeView/LazyRandomTypeCollection.h"
31
32
#include " llvm/DebugInfo/CodeView/Line.h"
32
33
#include " llvm/DebugInfo/CodeView/MergingTypeTableBuilder.h"
@@ -793,7 +794,10 @@ void COFFDumper::printCOFFDebugDirectory() {
793
794
DictScope PDBScope (W, " PDBInfo" );
794
795
W.printHex (" PDBSignature" , DebugInfo->Signature .CVSignature );
795
796
if (DebugInfo->Signature .CVSignature == OMF::Signature::PDB70) {
796
- W.printBinary (" PDBGUID" , ArrayRef (DebugInfo->PDB70 .Signature ));
797
+ SmallString<38 > FormattedGUIDStr;
798
+ raw_svector_ostream OS (FormattedGUIDStr);
799
+ fmt_guid (DebugInfo->PDB70 .Signature ).format (OS, " " /* Style=unused*/ );
800
+ W.printString (" PDBGUID" , FormattedGUIDStr);
797
801
W.printNumber (" PDBAge" , DebugInfo->PDB70 .Age );
798
802
W.printString (" PDBFileName" , PDBFileName);
799
803
}
You can’t perform that action at this time.
0 commit comments