diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-20 21:40:50 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-20 21:40:50 +0000 |
commit | 1ee3853fc97161ea74e4795d962587d1bd2bb674 (patch) | |
tree | 73037b8c006856982d61d51eb380833a18872c5a /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | 320a553319a3631e66d3724952068472144f81e9 (diff) | |
download | bcm5719-llvm-1ee3853fc97161ea74e4795d962587d1bd2bb674.tar.gz bcm5719-llvm-1ee3853fc97161ea74e4795d962587d1bd2bb674.zip |
Fixed a crasher. The cmd_file needs to be resolved before reading lines from it.
llvm-svn: 116948
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index dd5ab3267a7..3718658cb0e 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -70,7 +70,7 @@ public: result.AppendMessageWithFormat ("Executing commands in '%s'.\n", filename); - FileSpec cmd_file (filename, false); + FileSpec cmd_file (filename, true); if (cmd_file.Exists()) { STLStringArray commands; |