[Lldb-commits] [lldb] Summarize std::string's when created from	data. (PR #89110)
    Jacob Lalonde via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Wed Apr 17 13:09:57 PDT 2024
    
    
  
================
@@ -254,13 +254,13 @@ bool lldb_private::formatters::LibStdcppStringSummaryProvider(
   } else
     addr_of_string =
         valobj.GetAddressOf(scalar_is_load_addr, &addr_type);
-  if (addr_of_string != LLDB_INVALID_ADDRESS) {
+  if (addr_of_string != LLDB_INVALID_ADDRESS ||
+        addr_type == eAddressTypeHost) {
----------------
Jlalond wrote:
Yes, the switch statement is within the if block, if we don't add this exception we will return false and fall back to the ValueObjectPrinter
https://github.com/llvm/llvm-project/pull/89110
    
    
More information about the lldb-commits
mailing list