[Lldb-commits] [lldb] [lldb] Add support for displaying `__float128` variables (PR #98369)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Thu May 15 04:42:18 PDT 2025


================
@@ -666,7 +667,9 @@ lldb::offset_t lldb_private::DumpDataExtractor(
       const unsigned format_precision = 0;
 
       const llvm::fltSemantics &semantics =
-          GetFloatSemantics(target_sp, item_byte_size);
+          item_format == eFormatFloat128 && item_byte_size == 16
+              ? llvm::APFloat::IEEEquad()
+              : GetFloatSemantics(target_sp, item_byte_size);
----------------
Michael137 wrote:

Why can't this byte_size check be part of `GetFloatSemantics`?

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


More information about the lldb-commits mailing list