[all-commits] [llvm/llvm-project] 61d5b0: [lldb/Driver] Exit with a non-zero exit code in ca...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue May 5 11:02:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 61d5b0e66394d61947d61861685b4223214f023e
      https://github.com/llvm/llvm-project/commit/61d5b0e66394d61947d61861685b4223214f023e
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-05-05 (Tue, 05 May 2020)

  Changed paths:
    M lldb/source/Interpreter/CommandInterpreter.cpp
    M lldb/test/Shell/Commands/command-source.test
    M lldb/test/Shell/Driver/TestProcessAttach.test
    M lldb/test/Shell/Host/TestCustomShell.test
    M lldb/test/Shell/Quit/TestQuitExitCodeNonInt.test
    M lldb/test/Shell/Quit/TestQuitExitCodeTooManyArgs.test
    M lldb/test/Shell/Reproducer/TestDiscard.test
    M lldb/test/Shell/Reproducer/TestDump.test
    M lldb/test/Shell/Settings/TestSettingsSet.test
    M lldb/test/Shell/Settings/TestStopCommandSourceOnError.test
    M lldb/test/Shell/SymbolFile/DWARF/debug-types-missing-signature.test
    M lldb/test/Shell/Unwind/thread-step-out-ret-addr-check.test
    M lldb/tools/driver/Driver.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list