[Lldb-commits] [lldb] [LLDB] Fix 64 bit support for CIE and FDE handling in DWARFCallFrameInfo (PR #158350)

David Peixotto via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 16 12:04:37 PDT 2025


================
@@ -283,7 +306,7 @@ DWARFCallFrameInfo::ParseCIE(const dw_offset_t cie_offset) {
     GetCFIData();
   uint32_t length = m_cfi_data.GetU32(&offset);
   dw_offset_t cie_id, end_offset;
-  bool is_64bit = (length == UINT32_MAX);
+  bool is_64bit = (length == std::numeric_limits<uint32_t>::max());
----------------
dmpots wrote:

Can use
```
DW_LENGTH_DWARF64
````

from here
https://github.com/dmpots/llvm-project/blob/5c17af419ec7e9c823a1ae9287baeed0d27336ce/llvm/include/llvm/BinaryFormat/Dwarf.h#L56C3-L56C20

https://github.com/llvm/llvm-project/pull/158350


More information about the lldb-commits mailing list