[Lldb-commits] [lldb] b6cd964 - Fix typo in xfail decorator for lldb thread plan list tests
Author: Muhammad Omair Javaid Date: 2020-04-05T20:16:46+05:00 New Revision: b6cd964ac7cb9b55dfcdbe43c5502c2c0f6cbebc URL: https://github.com/llvm/llvm-project/commit/b6cd964ac7cb9b55dfcdbe43c5502c2c0f6cbebc DIFF: https://github.com/llvm/llvm-project/commit/b6cd964ac7cb9b55dfcdbe43c5502c2c0f6cbebc.diff LOG: Fix typo in xfail decorator for lldb thread plan list tests Added: Modified: lldb/test/API/functionalities/thread_plan/TestThreadPlanCommands.py Removed: diff --git a/lldb/test/API/functionalities/thread_plan/TestThreadPlanCommands.py b/lldb/test/API/functionalities/thread_plan/TestThreadPlanCommands.py index b4ae9107aceb..5214a3f6b0fe 100644 --- a/lldb/test/API/functionalities/thread_plan/TestThreadPlanCommands.py +++ b/lldb/test/API/functionalities/thread_plan/TestThreadPlanCommands.py @@ -17,7 +17,7 @@ class TestThreadPlanCommands(TestBase): NO_DEBUG_INFO_TESTCASE = True @skipIfWindows -@expectedFailureAll(oslist=["Linux"]) +@expectedFailureAll(oslist=["linux"]) def test_thread_plan_actions(self): self.build() self.main_source_file = lldb.SBFileSpec("main.c") ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D77444: [commands] Support autorepeat in SBCommands
clayborg added a comment. I was thinking if auto repeat was enabled that the DoExecute would just get called again with nothing and then the plug-in could maintain any repeat commands without needing to add anything... Glad you chimed in! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77444/new/ https://reviews.llvm.org/D77444 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D77444: [commands] Support autorepeat in SBCommands
clayborg added a comment. The biggest issue is maintaining the API. We can't add anything to SBCommandPluginInterface Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77444/new/ https://reviews.llvm.org/D77444 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D77141: [DebugInfo] Rename section identifiers which are deprecated in DWARFv5. NFC.
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Sure - looks good CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77141/new/ https://reviews.llvm.org/D77141 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
[Lldb-commits] [PATCH] D77302: [DebugInfo] Rename getOffset() to getContribution(). NFC.
This revision was automatically updated to reflect the committed changes. Closed by commit rGf13ce15d4410: [DebugInfo] Rename getOffset() to getContribution(). NFC. (authored by ikudrin). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77302/new/ https://reviews.llvm.org/D77302 Files: lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h llvm/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp llvm/tools/llvm-dwp/llvm-dwp.cpp Index: llvm/tools/llvm-dwp/llvm-dwp.cpp === --- llvm/tools/llvm-dwp/llvm-dwp.cpp +++ llvm/tools/llvm-dwp/llvm-dwp.cpp @@ -219,7 +219,7 @@ static StringRef getSubsection(StringRef Section, const DWARFUnitIndex::Entry &Entry, DWARFSectionKind Kind) { - const auto *Off = Entry.getOffset(Kind); + const auto *Off = Entry.getContribution(Kind); if (!Off) return StringRef(); return Section.substr(Off->Offset, Off->Length); @@ -231,7 +231,7 @@ const UnitIndexEntry &TUEntry, uint32_t &TypesOffset) { Out.SwitchSection(OutputTypes); for (const DWARFUnitIndex::Entry &E : TUIndex.getRows()) { -auto *I = E.getOffsets(); +auto *I = E.getContributions(); if (!I) continue; auto P = TypeIndexEntries.insert(std::make_pair(E.getSignature(), TUEntry)); @@ -599,7 +599,7 @@ return make_error("failed to parse cu_index"); for (const DWARFUnitIndex::Entry &E : CUIndex.getRows()) { - auto *I = E.getOffsets(); + auto *I = E.getContributions(); if (!I) continue; auto P = IndexEntries.insert(std::make_pair(E.getSignature(), CurEntry)); Index: llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp === --- llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp +++ llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp @@ -154,7 +154,7 @@ } const DWARFUnitIndex::Entry::SectionContribution * -DWARFUnitIndex::Entry::getOffset(DWARFSectionKind Sec) const { +DWARFUnitIndex::Entry::getContribution(DWARFSectionKind Sec) const { uint32_t i = 0; for (; i != Index->Header.NumColumns; ++i) if (Index->ColumnKinds[i] == Sec) @@ -163,7 +163,7 @@ } const DWARFUnitIndex::Entry::SectionContribution * -DWARFUnitIndex::Entry::getOffset() const { +DWARFUnitIndex::Entry::getContribution() const { return &Contributions[Index->InfoColumn]; } Index: llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp === --- llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp +++ llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp @@ -139,7 +139,7 @@ DWARFUnit * DWARFUnitVector::getUnitForIndexEntry(const DWARFUnitIndex::Entry &E) { - const auto *CUOff = E.getOffset(DW_SECT_INFO); + const auto *CUOff = E.getContribution(DW_SECT_INFO); if (!CUOff) return nullptr; @@ -183,7 +183,7 @@ // data based on the index entries. StringRef Data = LocSection->Data; if (auto *IndexEntry = Header.getIndexEntry()) - if (const auto *C = IndexEntry->getOffset(DW_SECT_LOC)) + if (const auto *C = IndexEntry->getContribution(DW_SECT_LOC)) Data = Data.substr(C->Offset, C->Length); DWARFDataExtractor DWARFData = @@ -294,11 +294,11 @@ if (IndexEntry) { if (AbbrOffset) return false; -auto *UnitContrib = IndexEntry->getOffset(); +auto *UnitContrib = IndexEntry->getContribution(); if (!UnitContrib || UnitContrib->Length != (Length + getUnitLengthFieldByteSize())) return false; -auto *AbbrEntry = IndexEntry->getOffset(DW_SECT_ABBREV); +auto *AbbrEntry = IndexEntry->getContribution(DW_SECT_ABBREV); if (!AbbrEntry) return false; AbbrOffset = AbbrEntry->Offset; @@ -966,7 +966,7 @@ uint64_t Offset = 0; auto IndexEntry = Header.getIndexEntry(); const auto *C = - IndexEntry ? IndexEntry->getOffset(DW_SECT_STR_OFFSETS) : nullptr; + IndexEntry ? IndexEntry->getContribution(DW_SECT_STR_OFFSETS) : nullptr; if (C) Offset = C->Offset; if (getVersion() >= 5) { Index: llvm/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h === --- llvm/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h +++ llvm/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h @@ -56,10 +56,10 @@ friend class DWARFUnitIndex; public: -const SectionContribution *getOffset(DWARFSectionKind Sec) const; -const SectionContribution *getOffset() const; +const SectionContribution *getContribution(DWARFSectionKind Sec) const; +const SectionContribution *getContribution() const; -const SectionContribution *getOffsets() const { +const SectionContribution *getContribu
[Lldb-commits] [PATCH] D77141: [DebugInfo] Rename section identifiers which are deprecated in DWARFv5. NFC.
ikudrin updated this revision to Diff 254802. ikudrin added a comment. - Rebased to the tip. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77141/new/ https://reviews.llvm.org/D77141 Files: lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp llvm/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h llvm/lib/DebugInfo/DWARF/DWARFContext.cpp llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp llvm/tools/llvm-dwp/llvm-dwp.cpp Index: llvm/tools/llvm-dwp/llvm-dwp.cpp === --- llvm/tools/llvm-dwp/llvm-dwp.cpp +++ llvm/tools/llvm-dwp/llvm-dwp.cpp @@ -259,7 +259,7 @@ C.Length = I->Length; ++I; } -const unsigned TypesIndex = getContributionIndex(DW_SECT_TYPES); +const unsigned TypesIndex = getContributionIndex(DW_SECT_EXT_TYPES); auto &C = Entry.Contributions[TypesIndex]; Out.emitBytes(Types.substr( C.Offset - TUEntry.Contributions[TypesIndex].Offset, C.Length)); @@ -281,7 +281,7 @@ UnitIndexEntry Entry = CUEntry; // Zero out the debug_info contribution Entry.Contributions[0] = {}; - auto &C = Entry.Contributions[getContributionIndex(DW_SECT_TYPES)]; + auto &C = Entry.Contributions[getContributionIndex(DW_SECT_EXT_TYPES)]; C.Offset = TypesOffset; auto PrevOffset = Offset; // Length of the unit, including the 4 byte length field. @@ -452,7 +452,7 @@ if (DWARFSectionKind Kind = SectionPair->second.second) { auto Index = getContributionIndex(Kind); -if (Kind != DW_SECT_TYPES) { +if (Kind != DW_SECT_EXT_TYPES) { CurEntry.Contributions[Index].Offset = ContributionOffsets[Index]; ContributionOffsets[Index] += (CurEntry.Contributions[Index].Length = Contents.size()); @@ -536,10 +536,10 @@ MCSection *const TUIndexSection = MCOFI.getDwarfTUIndexSection(); const StringMap> KnownSections = { {"debug_info.dwo", {MCOFI.getDwarfInfoDWOSection(), DW_SECT_INFO}}, - {"debug_types.dwo", {MCOFI.getDwarfTypesDWOSection(), DW_SECT_TYPES}}, + {"debug_types.dwo", {MCOFI.getDwarfTypesDWOSection(), DW_SECT_EXT_TYPES}}, {"debug_str_offsets.dwo", {StrOffsetSection, DW_SECT_STR_OFFSETS}}, {"debug_str.dwo", {StrSection, static_cast(0)}}, - {"debug_loc.dwo", {MCOFI.getDwarfLocDWOSection(), DW_SECT_LOC}}, + {"debug_loc.dwo", {MCOFI.getDwarfLocDWOSection(), DW_SECT_EXT_LOC}}, {"debug_line.dwo", {MCOFI.getDwarfLineDWOSection(), DW_SECT_LINE}}, {"debug_abbrev.dwo", {MCOFI.getDwarfAbbrevDWOSection(), DW_SECT_ABBREV}}, {"debug_cu_index", {CUIndexSection, static_cast(0)}}, @@ -603,7 +603,7 @@ P.first->second.DWOName = ID.DWOName; addAllTypes(Out, TypeIndexEntries, TypesSection, CurTypesSection, CurEntry, - ContributionOffsets[getContributionIndex(DW_SECT_TYPES)]); + ContributionOffsets[getContributionIndex(DW_SECT_EXT_TYPES)]); continue; } @@ -642,13 +642,14 @@ if (!CurTypesSection.empty()) { if (CurTypesSection.size() != 1) return make_error("multiple type unit sections in .dwp file"); - DWARFUnitIndex TUIndex(DW_SECT_TYPES); + DWARFUnitIndex TUIndex(DW_SECT_EXT_TYPES); DataExtractor TUIndexData(CurTUIndexSection, Obj.isLittleEndian(), 0); if (!TUIndex.parse(TUIndexData)) return make_error("failed to parse tu_index"); addAllTypesFromDWP( Out, TypeIndexEntries, TUIndex, TypesSection, CurTypesSection.front(), - CurEntry, ContributionOffsets[getContributionIndex(DW_SECT_TYPES)]); + CurEntry, + ContributionOffsets[getContributionIndex(DW_SECT_EXT_TYPES)]); } } @@ -659,7 +660,7 @@ TypeIndexEntries); // Lie about the type contribution - ContributionOffsets[getContributionIndex(DW_SECT_TYPES)] = 0; + ContributionOffsets[getContributionIndex(DW_SECT_EXT_TYPES)] = 0; // Unlie about the info contribution ContributionOffsets[0] = 1; Index: llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp === --- llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp +++ llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp @@ -352,7 +352,7 @@ OS << "Verifying .debug_types Unit Header Chain...\n"; DObj.forEachTypesSections([&](const DWARFSection &S) { -NumErrors += verifyUnitSection(S, DW_SECT_TYPES); +NumErrors += verifyUnitSection(S, DW_SECT_EXT_TYPES); }); return NumErrors == 0; } Index: llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp === --- llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp +++ llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp @@ -110,13 +110,16 @@ return #DS; switch (DS) { CASE(INFO); -CASE(TYPES); CAS