[Lldb-commits] [PATCH] Change lldb_assert() to use llvm::sys::PrintBacktrace

Ed Maste emaste at freebsd.org
Wed Mar 4 18:00:03 PST 2015


On 4 March 2015 at 20:48, Enrico Granata <egranata at apple.com> wrote:
>
> In this case we could get away with the lesser interface (FILE*), that’s
> true. However, if - say - we ended up deciding that the output of
> lldbassert() should go to the user’s terminal AND to a log file, this would
> be trivial to do with a StreamTee, but it would require more fiddling with a
> FILE*

The same argument can be made for adding that functionality in the
LLVM implementation, I think. If there's value of having the output go
to multiple sources, for example, other LLVM projects could also
benefit from it.




More information about the lldb-commits mailing list