This diff modifies the LLDB server return codes to more accurately reflect usage error paths. Specifically we always propagate the return codes from the main entrypoints into GDB remote LLDB server, and platform LLDB server. This way, the top-level caller of LLDB server will be able to correctly check whether the executable exited with or without an error.
We additionally modify and extend the associated shell unit tests to expect nonzero return codes on error conditions.
Test Plan:
LLDB tests pass:
ninja check-lldb
clang-format not found in user’s local PATH; not linting file.