Skip to content

Commit

Permalink
Revert "[lldb] Fix handling of DW_AT_decl_file according to D91014"
Browse files Browse the repository at this point in the history
This reverts commit 7ec7876.

Non-x86_64 non-Linux bots broke by the testcase.
  • Loading branch information
jankratochvil committed Mar 1, 2021
1 parent 922de25 commit 011e7bc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 334 deletions.
3 changes: 1 addition & 2 deletions lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2201,8 +2201,7 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
case DW_AT_description:
default:
case DW_AT_decl_file:
decl.SetFile(attributes.CompileUnitAtIndex(i)->GetFile(
form_value.Unsigned()));
decl.SetFile(die.GetCU()->GetFile(form_value.Unsigned()));
break;
case DW_AT_decl_line:
decl.SetLine(form_value.Unsigned());
Expand Down
4 changes: 2 additions & 2 deletions lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3126,8 +3126,8 @@ VariableSP SymbolFileDWARF::ParseVariableDIE(const SymbolContext &sc,
continue;
switch (attr) {
case DW_AT_decl_file:
decl.SetFile(
attributes.CompileUnitAtIndex(i)->GetFile(form_value.Unsigned()));
decl.SetFile(sc.comp_unit->GetSupportFiles().GetFileSpecAtIndex(
form_value.Unsigned()));
break;
case DW_AT_decl_line:
decl.SetLine(form_value.Unsigned());
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 011e7bc

Please sign in to comment.