[CommandObjectCommands] Honor stop-command-source-on-error
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 2 May 2019 01:54:02 +0000 (01:54 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 2 May 2019 01:54:02 +0000 (01:54 +0000)
commit1c19b74cef3ce49ae081986f0fc6d6a23faa9bca
treea2f43945d4295a2c9667e846c1402e54f7ebd968
parent413517ecfe7886a212d65123a74a8f6434998698
[CommandObjectCommands] Honor stop-command-source-on-error

This patch ensures that we honor the stop-command-source-on-error
setting from `command source`. The problem is that we didn't
differentiate between the boolean value being true or false, or not
being set. For the latter scenario, we should calculate the value in the
command interpreter based on the global options.

Differential revision: https://reviews.llvm.org/D61406

llvm-svn: 359750
lldb/lit/Commands/command-source.test [new file with mode: 0644]
lldb/source/Commands/CommandObjectCommands.cpp