llvm-project/lldb
Sebastian Schwartz e387c8c413 [lldb server] Tidy up LLDB server return codes and associated tests
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
```

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D108351
2021-09-02 11:16:37 +02:00
..
bindings [lldb] Add AllocateMemory/DeallocateMemory to the SBProcess API 2021-07-16 00:45:22 +02:00
cmake [lldb] [cmake] Add LLVM_LIT_ARGS override support for standalone builds 2021-08-09 23:36:01 +02:00
docs [LLDB][Docs] Move best-practices.txt contain to resources/test.rst 2021-08-31 11:45:24 +05:30
examples [lldb/Plugins] Add ScriptedProcess Process Plugin 2021-07-22 14:47:33 +02:00
include/lldb [lldb] Add minidump save-core functionality to ELF object files 2021-09-01 15:14:29 +02:00
packages/Python [test] Migrate -gcc-toolchain with space separator to --gcc-toolchain= 2021-08-20 15:24:58 -07:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [lldb] Add minidump save-core functionality to ELF object files 2021-09-01 15:14:29 +02:00
test [lldb server] Tidy up LLDB server return codes and associated tests 2021-09-02 11:16:37 +02:00
third_party/Python/module [LLDB] Change pexpect timeout to 30 to 60 2021-08-02 06:34:11 +05:00
tools [lldb server] Tidy up LLDB server return codes and associated tests 2021-09-02 11:16:37 +02:00
unittests [lldb] Return all line entries matchign a line if no column is specified 2021-08-30 14:45:46 +02:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
.gitignore
CMakeLists.txt [lldb] skip host build for lldb_tblgen with LLDB_TABLEGEN_EXE set 2021-08-13 14:18:03 -07:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py