[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
Thu Nov 28 10:01:01 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:
I'm not actually sure what I'd prefer for C++. Usually when I print a pointer I only what to see the pointer value. But maybe that's because I've gotten used to the LLDB CLI and the way `frame var` works.
This thread here might be relevant: https://github.com/llvm/llvm-project/pull/117755#pullrequestreview-2462584459
Limiting this change to ObjC for now seems fine to me. But yea, asking a wider audience might be a good idea.
https://github.com/llvm/llvm-project/pull/117500
More information about the lldb-commits
mailing list