[Lldb-commits] [lldb] [lldb] Log errors to the system log if they would otherwise get dropped (PR #111911)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 05:24:28 PDT 2024


DavidSpickett wrote:

>the Swift fork starts by logging the used lldb version to the system log. 

Oh so this is why the tests on Windows suddenly printed version numbers then :)

> I'm starting to wonder if we should just make the system log a NOOP on Linux too like we did on Windows.

The pitch sounds great I'm all in but yes I don't think there's a single place on Linux that fits right now. System log being a NOOP isn't a regression for Linux either. If/when Swift on Linux or some other LLDB distributor wants to get the same benefits as Mac, they can suggest a solution.

If this uses the existing logging infrastructure, I presume it is possible to give a user a command to enable lldb's system log and re-run the reproducer? It would be the same as sending any other channel to a file.

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


More information about the lldb-commits mailing list