JDevlieghere added a comment.

In D64267#1571960 <https://reviews.llvm.org/D64267#1571960>, @teemperor wrote:

> Would it be possible to assert after the printing the stack trace? Having 
> stack traces in bug reports is always nice to have and displaying the 
> "Assertion failed: ..." message seems also useful for the user.


The stack trace will be printed when the `assert` is hit, because we have a 
call to LLVM's pretty stack trace printer in the signal handler. That's the 
reason I moved the assert *before* the `PrintStackTrace` call.

Regarding the `Assertion failed` message, I wasn't sure if we wanted to print 
that twice, once coming form lldb_assert (with the real function, file and 
line) and once from the `assert` (with the function, file and line pointing to 
the lldb_assert implementation). If you think it's useful I'm happy to move the 
assertion to just after that print statement.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64267/new/

https://reviews.llvm.org/D64267



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to