[Lldb-commits] [lldb] r109673 - in /lldb/trunk: source/Interpreter/CommandInterpreter.cpp tools/driver/Driver.cpp

Johnny Chen johnny.chen at apple.com
Wed Jul 28 14:16:11 PDT 2010


Author: johnny
Date: Wed Jul 28 16:16:11 2010
New Revision: 109673

URL: http://llvm.org/viewvc/llvm-project?rev=109673&view=rev
Log:
The unix "source" command maps to "command source" in lldb. :-)

Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp
    lldb/trunk/tools/driver/Driver.cpp

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=109673&r1=109672&r2=109673&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Wed Jul 28 16:16:11 2010
@@ -1153,7 +1153,7 @@
         char path[PATH_MAX];
         init_file.GetPath(path, sizeof(path));
         StreamString source_command;
-        source_command.Printf ("source '%s'", path);
+        source_command.Printf ("command source '%s'", path);
         HandleCommand (source_command.GetData(), false, result);
     }
     else

Modified: lldb/trunk/tools/driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Driver.cpp?rev=109673&r1=109672&r2=109673&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Driver.cpp (original)
+++ lldb/trunk/tools/driver/Driver.cpp Wed Jul 28 16:16:11 2010
@@ -1137,7 +1137,7 @@
                 for (size_t i=0; i < num_source_command_files; ++i)
                 {
                     const char *command_file = GetSourceCommandFileAtIndex(i);
-                    ::snprintf (command_string, sizeof(command_string), "source '%s'", command_file);
+                    ::snprintf (command_string, sizeof(command_string), "command source '%s'", command_file);
                     m_debugger.GetCommandInterpreter().HandleCommand (command_string, result, false);
                     if (GetDebugMode())
                     {





More information about the lldb-commits mailing list