[all-commits] [llvm/llvm-project] 65e68a: [lldb] Update dwim-print to show expanded objc ins...
Dave Lee via All-commits
all-commits at lists.llvm.org
Sat Mar 15 08:58:13 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 65e68a30787d7ce2bf5a9e695dd03944137c5287
https://github.com/llvm/llvm-project/commit/65e68a30787d7ce2bf5a9e695dd03944137c5287
Author: Dave Lee <davelee.com at gmail.com>
Date: 2025-03-15 (Sat, 15 Mar 2025)
Changed paths:
M lldb/include/lldb/DataFormatters/DumpValueObjectOptions.h
M lldb/source/Commands/CommandObjectDWIMPrint.cpp
M lldb/source/DataFormatters/DumpValueObjectOptions.cpp
M lldb/source/DataFormatters/ValueObjectPrinter.cpp
A lldb/test/API/commands/dwim-print/objc/Makefile
A lldb/test/API/commands/dwim-print/objc/TestDWIMPrintObjC.py
A lldb/test/API/commands/dwim-print/objc/main.m
Log Message:
-----------
[lldb] Update dwim-print to show expanded objc instances (#117500)
When printing an ObjC object, which is a pointer, lldb has handled it
the same way it treats any other pointer – printing only class name and
pointer address. The object is not expanded, its children are not shown.
This change updates `dwim-print` to print objc pointers by expanding (ie
dereferencing), with the assumption that it's what the user wants.
Note that this is currently possible using the `--ptr-depth`/`-P` flag.
With this change, when `dwim-print` prints root level objc objects, it's
the same effect as using `--ptr-depth 1`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list