@@ -452,9 +452,9 @@ TypeSP DWARFASTParserClang::ParseTypeFromDWARF(const SymbolContext &sc,
452
452
log,
453
453
" DWARFASTParserClang::ParseTypeFromDWARF "
454
454
" (die = {0:x16}, decl_ctx = {1:p} (die "
455
- " {2:x16})) {3} name = '{4 }')" ,
455
+ " {2:x16})) {3} ({4}) name = '{5 }')" ,
456
456
die.GetOffset (), static_cast <void *>(context), context_die.GetOffset (),
457
- die.GetTagAsCString (), die.GetName ());
457
+ DW_TAG_value_to_name ( die.Tag ()), die. Tag (), die.GetName ());
458
458
}
459
459
460
460
Type *type_ptr = dwarf->GetDIEToType ().lookup (die.GetDIE ());
@@ -765,9 +765,10 @@ DWARFASTParserClang::ParseTypeModifier(const SymbolContext &sc,
765
765
if (log)
766
766
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
767
767
log,
768
- " SymbolFileDWARF::ParseType (die = {0:x16}) {1} '{2 }' "
768
+ " SymbolFileDWARF::ParseType (die = {0:x16}) {1} ({2}) '{3 }' "
769
769
" is Objective-C 'id' built-in type." ,
770
- die.GetOffset (), die.GetTagAsCString (), die.GetName ());
770
+ die.GetOffset (), DW_TAG_value_to_name (die.Tag ()), die.Tag (),
771
+ die.GetName ());
771
772
clang_type = m_ast.GetBasicType (eBasicTypeObjCID);
772
773
encoding_data_type = Type::eEncodingIsUID;
773
774
attrs.type .Clear ();
@@ -776,9 +777,10 @@ DWARFASTParserClang::ParseTypeModifier(const SymbolContext &sc,
776
777
if (log)
777
778
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
778
779
log,
779
- " SymbolFileDWARF::ParseType (die = {0:x16}) {1} '{2 }' "
780
+ " SymbolFileDWARF::ParseType (die = {0:x16}) {1} ({2}) '{3 }' "
780
781
" is Objective-C 'Class' built-in type." ,
781
- die.GetOffset (), die.GetTagAsCString (), die.GetName ());
782
+ die.GetOffset (), DW_TAG_value_to_name (die.Tag ()), die.Tag (),
783
+ die.GetName ());
782
784
clang_type = m_ast.GetBasicType (eBasicTypeObjCClass);
783
785
encoding_data_type = Type::eEncodingIsUID;
784
786
attrs.type .Clear ();
@@ -787,9 +789,10 @@ DWARFASTParserClang::ParseTypeModifier(const SymbolContext &sc,
787
789
if (log)
788
790
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
789
791
log,
790
- " SymbolFileDWARF::ParseType (die = {0:x16}) {1} '{2 }' "
792
+ " SymbolFileDWARF::ParseType (die = {0:x16}) {1} ({2}) '{3 }' "
791
793
" is Objective-C 'selector' built-in type." ,
792
- die.GetOffset (), die.GetTagAsCString (), die.GetName ());
794
+ die.GetOffset (), DW_TAG_value_to_name (die.Tag ()), die.Tag (),
795
+ die.GetName ());
793
796
clang_type = m_ast.GetBasicType (eBasicTypeObjCSel);
794
797
encoding_data_type = Type::eEncodingIsUID;
795
798
attrs.type .Clear ();
@@ -808,10 +811,10 @@ DWARFASTParserClang::ParseTypeModifier(const SymbolContext &sc,
808
811
if (log)
809
812
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
810
813
log,
811
- " SymbolFileDWARF::ParseType (die = {0:x16}) {1} "
812
- " '{2}' is 'objc_object*', which we overrode to "
813
- " 'id'. " ,
814
- die.GetOffset (), die. GetTagAsCString (), die. GetName ());
814
+ " SymbolFileDWARF::ParseType (die = {0:x16}) {1} ({2}) '{3}' "
815
+ " is 'objc_object*', which we overrode to 'id'. " ,
816
+ die. GetOffset (), DW_TAG_value_to_name (die. Tag ()), die. Tag () ,
817
+ die.GetName ());
815
818
clang_type = m_ast.GetBasicType (eBasicTypeObjCID);
816
819
encoding_data_type = Type::eEncodingIsUID;
817
820
attrs.type .Clear ();
@@ -870,10 +873,10 @@ TypeSP DWARFASTParserClang::ParseEnum(const SymbolContext &sc,
870
873
if (log) {
871
874
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
872
875
log,
873
- " SymbolFileDWARF({0:p}) - {1:x16}}: {2} type \" {3 }\" is a "
874
- " forward declaration, complete type is {4 :x8}" ,
876
+ " SymbolFileDWARF({0:p}) - {1:x16}}: {2} ({3}) type \" {4 }\" is a "
877
+ " forward declaration, complete type is {5 :x8}" ,
875
878
static_cast <void *>(this ), die.GetOffset (),
876
- DW_TAG_value_to_name (tag), attrs.name .GetCString (),
879
+ DW_TAG_value_to_name (tag), tag, attrs.name .GetCString (),
877
880
type_sp->GetID ());
878
881
}
879
882
@@ -1734,11 +1737,10 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
1734
1737
if (log) {
1735
1738
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
1736
1739
log,
1737
- " SymbolFileDWARF({0:p}) - {1:x16}: {2} type "
1738
- " \" {3}\" is an "
1739
- " incomplete objc type, complete type is {4:x8}" ,
1740
+ " SymbolFileDWARF({0:p}) - {1:x16}: {2} ({3}) type \" {4}\" is an "
1741
+ " incomplete objc type, complete type is {5:x8}" ,
1740
1742
static_cast <void *>(this ), die.GetOffset (),
1741
- DW_TAG_value_to_name (tag), attrs.name .GetCString (),
1743
+ DW_TAG_value_to_name (tag), tag, attrs.name .GetCString (),
1742
1744
type_sp->GetID ());
1743
1745
}
1744
1746
@@ -1760,10 +1762,10 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
1760
1762
if (log) {
1761
1763
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
1762
1764
log,
1763
- " SymbolFileDWARF({0:p}) - {1:x16}: {2} type \" {3 }\" is a "
1765
+ " SymbolFileDWARF({0:p}) - {1:x16}: {2} ({3}) type \" {4 }\" is a "
1764
1766
" forward declaration, trying to find complete type" ,
1765
1767
static_cast <void *>(this ), die.GetOffset (), DW_TAG_value_to_name (tag),
1766
- attrs.name .GetCString ());
1768
+ tag, attrs.name .GetCString ());
1767
1769
}
1768
1770
1769
1771
// See if the type comes from a Clang module and if so, track down
@@ -1789,10 +1791,10 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
1789
1791
if (log) {
1790
1792
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
1791
1793
log,
1792
- " SymbolFileDWARF({0:p}) - {1:x16}: {2} type \" {3 }\" is a "
1793
- " forward declaration, complete type is {4 :x8}" ,
1794
+ " SymbolFileDWARF({0:p}) - {1:x16}: {2} ({3}) type \" {4 }\" is a "
1795
+ " forward declaration, complete type is {5 :x8}" ,
1794
1796
static_cast <void *>(this ), die.GetOffset (),
1795
- DW_TAG_value_to_name (tag), attrs.name .GetCString (),
1797
+ DW_TAG_value_to_name (tag), tag, attrs.name .GetCString (),
1796
1798
type_sp->GetID ());
1797
1799
}
1798
1800
@@ -1836,10 +1838,10 @@ DWARFASTParserClang::ParseStructureLikeDIE(const SymbolContext &sc,
1836
1838
if (log) {
1837
1839
dwarf->GetObjectFile ()->GetModule ()->LogMessage (
1838
1840
log,
1839
- " SymbolFileDWARF({0:p}) - {1:x16}: {2} type \" {3 }\" "
1841
+ " SymbolFileDWARF({0:p}) - {1:x16}: {2} ({3}) type \" {4 }\" "
1840
1842
" clang::ClassTemplateDecl failed to return a decl." ,
1841
1843
static_cast <void *>(this ), die.GetOffset (),
1842
- DW_TAG_value_to_name (tag), attrs.name .GetCString ());
1844
+ DW_TAG_value_to_name (tag), tag, attrs.name .GetCString ());
1843
1845
}
1844
1846
return TypeSP ();
1845
1847
}
@@ -3018,11 +3020,11 @@ void DWARFASTParserClang::ParseSingleMember(
3018
3020
this_field_info.bit_offset )))) {
3019
3021
ObjectFile *objfile = die.GetDWARF ()->GetObjectFile ();
3020
3022
objfile->GetModule ()->ReportWarning (
3021
- " {0:x16}: {1} bitfield named \" {2 }\" has invalid "
3022
- " bit offset ({3 :x8}) member will be ignored. Please file a bug "
3023
+ " {0:x16}: {1} ({2}) bitfield named \" {3 }\" has invalid "
3024
+ " bit offset ({4 :x8}) member will be ignored. Please file a bug "
3023
3025
" against the "
3024
- " compiler and include the preprocessed output for {4 }\n " ,
3025
- die.GetID (), DW_TAG_value_to_name (tag), attrs.name ,
3026
+ " compiler and include the preprocessed output for {5 }\n " ,
3027
+ die.GetID (), DW_TAG_value_to_name (tag), tag, attrs.name ,
3026
3028
this_field_info.bit_offset , GetUnitName (parent_die).c_str ());
3027
3029
return ;
3028
3030
}
0 commit comments