summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-10-20 21:40:50 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-10-20 21:40:50 +0000
commit1ee3853fc97161ea74e4795d962587d1bd2bb674 (patch)
tree73037b8c006856982d61d51eb380833a18872c5a /lldb/source/Commands/CommandObjectCommands.cpp
parent320a553319a3631e66d3724952068472144f81e9 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud