diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-07-28 21:16:11 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-07-28 21:16:11 +0000 |
| commit | 85ffddc1bfbe636cdd62f13a453467e09b7f9c5d (patch) | |
| tree | fc694989785bb35f7f4fb2260b28b19ba9be2e3d | |
| parent | 887d6b08fd87a1d0b525d87ab6895ea0aca57ea3 (diff) | |
| download | bcm5719-llvm-85ffddc1bfbe636cdd62f13a453467e09b7f9c5d.tar.gz bcm5719-llvm-85ffddc1bfbe636cdd62f13a453467e09b7f9c5d.zip | |
The unix "source" command maps to "command source" in lldb. :-)
llvm-svn: 109673
| -rw-r--r-- | lldb/source/Interpreter/CommandInterpreter.cpp | 2 | ||||
| -rw-r--r-- | lldb/tools/driver/Driver.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index 1027f94457f..3c0cd43ae64 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1153,7 +1153,7 @@ CommandInterpreter::SourceInitFile (bool in_cwd, CommandReturnObject &result) 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 diff --git a/lldb/tools/driver/Driver.cpp b/lldb/tools/driver/Driver.cpp index 552fbae90e5..2add92717d4 100644 --- a/lldb/tools/driver/Driver.cpp +++ b/lldb/tools/driver/Driver.cpp @@ -1137,7 +1137,7 @@ Driver::MainLoop () 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()) { |

