[Lldb-commits] [lldb] r184899 - <rdar://problem/14266578>

Enrico Granata egranata at apple.com
Tue Jun 25 17:36:27 PDT 2013


Author: enrico
Date: Tue Jun 25 19:36:27 2013
New Revision: 184899

URL: http://llvm.org/viewvc/llvm-project?rev=184899&view=rev
Log:
<rdar://problem/14266578>

"command source" was not properly setting the stop-on-error option


Modified:
    lldb/trunk/source/Commands/CommandObjectCommands.cpp

Modified: lldb/trunk/source/Commands/CommandObjectCommands.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectCommands.cpp?rev=184899&r1=184898&r2=184899&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectCommands.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectCommands.cpp Tue Jun 25 19:36:27 2013
@@ -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);





More information about the lldb-commits mailing list