[Lldb-commits] [lldb] [lldb] Update dwim-print to show expanded objc instances (PR #117500)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 27 03:20:49 PST 2024


================
@@ -87,7 +87,8 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
 
   DumpValueObjectOptions dump_options = m_varobj_options.GetAsDumpOptions(
       m_expr_options.m_verbosity, m_format_options.GetFormat());
-  dump_options.SetHideRootName(suppress_result);
+  dump_options.SetHideRootName(suppress_result)
+      .SetExpandPointerTypeFlags(lldb::eTypeIsObjC);
----------------
Michael137 wrote:

Is this something we would want for `frame var`/`expr` too? In which case we could just check for ObjC in `ValueObjectPrinter::ShouldPrintChildren` directly?

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


More information about the lldb-commits mailing list