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
15 lines
558 B
Plaintext
15 lines
558 B
Plaintext
RUN: not %lldb-server gdbserver --fd 2>&1 | FileCheck --check-prefixes=FD1,ALL %s
|
|
FD1: error: --fd: missing argument
|
|
|
|
RUN: not %lldb-server gdbserver --fd three 2>&1 | FileCheck --check-prefixes=FD2,ALL %s
|
|
FD2: error: invalid '--fd' argument
|
|
|
|
RUN: not %lldb-server gdbserver --bogus 2>&1 | FileCheck --check-prefixes=BOGUS,ALL %s
|
|
BOGUS: error: unknown argument '--bogus'
|
|
|
|
RUN: not %lldb-server gdbserver 2>&1 | FileCheck --check-prefixes=CONN,ALL %s
|
|
CONN: error: no connection arguments
|
|
|
|
ALL: Use '{{.*}} g[dbserver] --help' for a complete list of options.
|
|
|