[llvm] [llvm-dwp] Fix infinite loop on DWARFv5 DW_FORM_implicit_const (PR #205567)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 24 15:52:31 PDT 2026
================
@@ -39,19 +39,43 @@ static uint64_t debugStrOffsetsHeaderSize(DataExtractor StrOffsetsData,
return 8; // unit length: 4 bytes, version: 2 bytes, padding: 2 bytes.
}
-static uint64_t getCUAbbrev(StringRef Abbrev, uint64_t AbbrCode) {
+// Read the next (attribute, form) pair into Name and Form, also consuming the
+// inline DW_FORM_implicit_const value when present. Returns false on the
+// terminating (0, 0) pair.
+static bool readAbbrevAttribute(const DataExtractor &AbbrevData,
----------------
youngd007 wrote:
That seems fair to move. Hopefully it has a dependency on it already!
https://github.com/llvm/llvm-project/pull/205567
More information about the llvm-commits
mailing list