[Lldb-commits] [lldb] [lldb] Support CommandInterpreter print callbacks (PR #125006)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 31 09:31:28 PST 2025


jimingham wrote:

There are other ways you could extend this that would be very fun.  For instance, we could make any command that conses up its result just by calling the ValueObjectPrinter on some ValueObject to also stuff that ValueObject to the command return.  Then we could add SBCommandResultObject::GetReturnValueObject to return that ValueObject.  Then the callback could check whether there was a ValueObject in the command result, and if there is it would suppress that textual output and render the ValueObject as a live object in the result slot in the command output it is building up.

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


More information about the lldb-commits mailing list