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

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


jimingham wrote:

> > Yes, part of the requirement is that the output isn't printed by lldb itself, although the implementer is still in control with the return value.
> 
> Okay. I was afraid of that. :)
> 
> The code looks good, though I must admit that the functionality seems a bit.. random. Like, you're putting lldb in a terminal, but then you don't want it to behave like lldb in a terminal. I don't suppose there's anything you can say about what you intend to do with it?

One use case is that a UI might want to make a nicer presentation for some class of errors - for in particular the expression syntax errors that have more rich structure - making them disclosable or whatnot. Since those can be huge - particularly compile errors from expressions - you really don't want to duplicate the printing in that case.


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


More information about the lldb-commits mailing list