[all-commits] [llvm/llvm-project] 8c254a: [lldb] Remove calls to exit() in lldb-server (#186...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Fri Mar 13 10:05:11 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8c254a432f4aa12eb4e2cc600fe59ad8adf84c94
https://github.com/llvm/llvm-project/commit/8c254a432f4aa12eb4e2cc600fe59ad8adf84c94
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2026-03-13 (Fri, 13 Mar 2026)
Changed paths:
M lldb/test/Shell/lldb-server/TestGdbserverErrorMessages.test
M lldb/test/Shell/lldb-server/TestPlatformErrorMessages.test
M lldb/tools/lldb-server/lldb-gdbserver.cpp
M lldb/tools/lldb-server/lldb-server.cpp
Log Message:
-----------
[lldb] Remove calls to exit() in lldb-server (#186289)
After #185537, `lldb-server` would crash with an assertion because it
calls`exit()` instead of returning from `main`. This means that we never
get an opportunity to call `Terminate` before the static
`SystemLifetimeManager` is destroyed.
I could've created a static RAII object to wrap this in (similar to what
Aiden did in #186133) but that's not necessary. I updated the helper
functions to return an `llvm::Error` while `main_gdbserver` and
`main_platform` now return an `int`.
Fixes #186207
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list