[Lldb-commits] [lldb] Summarize std::string's when created from data. (PR #89110)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 29 16:01:40 PDT 2024


================
@@ -287,8 +291,52 @@ bool lldb_private::formatters::LibStdcppStringSummaryProvider(
       } else
         return true;
     } break;
-    case eAddressTypeHost:
-      break;
+    case eAddressTypeHost: {
+
+      DataExtractor data;
+      Status error;
+      valobj.GetData(data, error);
+      if (error.Fail())
+        return false;
+
----------------
clayborg wrote:

Where is the code that detects the short string optimization? I don't see it here anywhere?

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


More information about the lldb-commits mailing list