From 15571f1571d3454c60c9709283e337c359abab42 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 26 Jun 2013 00:36:27 +0000 Subject: [PATCH] "command source" was not properly setting the stop-on-error option llvm-svn: 184899 --- lldb/source/Commands/CommandObjectCommands.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index bbea08518344..2791139c11e3 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -326,9 +326,7 @@ protected: switch (short_option) { case 'e': - m_stop_on_error.SetCurrentValue(Args::StringToBoolean(option_arg, true, &success)); - if (!success) - error.SetErrorStringWithFormat("invalid value for stop-on-error: %s", option_arg); + error = m_stop_on_error.SetValueFromCString(option_arg); break; case 'c': m_stop_on_continue = Args::StringToBoolean(option_arg, true, &success);