[Lldb-commits] [lldb] [lldb] Log errors to the system log if they would otherwise get dropped (PR #111911)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 11 00:05:07 PDT 2024
labath wrote:
> I considered _always_ logging to the system log, but copying/cloning errors is a bit tricky. I could reuse the logic that Adrian added to status, but wanted to gather your input. Regardless, I tried this out locally by debugging the `count` tool and this already reported a bunch of errors that would have otherwise gone unnoticed. I haven't looked at them in detail but these were all things I've never seen before.
FWIW, it is possible to serialize an llvm::Error (for example, using llvm::formatv) without consuming it. (I think it did not exist back when this macro was written) It would just require some refactoring of the macro...
https://github.com/llvm/llvm-project/pull/111911
More information about the lldb-commits
mailing list