[lldb/Driver] Exit with a non-zero exit code in case of error in batch mode.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 May 2020 17:58:03 +0000 (10:58 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 5 May 2020 18:01:44 +0000 (11:01 -0700)
commit61d5b0e66394d61947d61861685b4223214f023e
treecd56adf9a37e56d39f0fc71529f878bbfc3a3446
parent8fc7a907b93a8e9eef96e872f8f926db3ebfe9b6
[lldb/Driver] Exit with a non-zero exit code in case of error in batch mode.

We have the option to stop running commands in batch mode when an error
occurs. When that happens we should exit the driver with a non-zero exit
code.

Differential revision: https://reviews.llvm.org/D78825
13 files changed:
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/test/Shell/Commands/command-source.test
lldb/test/Shell/Driver/TestProcessAttach.test
lldb/test/Shell/Host/TestCustomShell.test
lldb/test/Shell/Quit/TestQuitExitCodeNonInt.test
lldb/test/Shell/Quit/TestQuitExitCodeTooManyArgs.test
lldb/test/Shell/Reproducer/TestDiscard.test
lldb/test/Shell/Reproducer/TestDump.test
lldb/test/Shell/Settings/TestSettingsSet.test
lldb/test/Shell/Settings/TestStopCommandSourceOnError.test
lldb/test/Shell/SymbolFile/DWARF/debug-types-missing-signature.test
lldb/test/Shell/Unwind/thread-step-out-ret-addr-check.test
lldb/tools/driver/Driver.cpp