summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2012-05-31 01:09:06 +0000
committerEnrico Granata <egranata@apple.com>2012-05-31 01:09:06 +0000
commit5f5ab60274277be5af7765d0fd288fe2c454e164 (patch)
tree3e1b6dee9fc78ddfa1b29edc90d45be6fbf9c7a7 /lldb/source/Interpreter/CommandObjectRegexCommand.cpp
parent368461cad0cbbb7e7c2151dd4ca0412d8d71c21a (diff)
downloadbcm5719-llvm-5f5ab60274277be5af7765d0fd288fe2c454e164.tar.gz
bcm5719-llvm-5f5ab60274277be5af7765d0fd288fe2c454e164.zip
<rdar://problem/11328896> Fixing a bug where regex commands were saved in the history even if they came from a 'command sourced' file - this fix introduces a command sourcing depth and disables history for all levels of depth > 0, which means no commands go into history when being sourced from a file. we need an integer depth because command files might themselves source other command files, ...
llvm-svn: 157727
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObjectRegexCommand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
index 7f2e8c0323c..871922c6222 100644
--- a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
+++ b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
@@ -88,7 +88,7 @@ CommandObjectRegexCommand::ExecuteRawCommandString
}
// Interpret the new command and return this as the result!
result.GetOutputStream().Printf("%s\n", new_command.c_str());
- return m_interpreter.HandleCommand(new_command.c_str(), true, result);
+ return m_interpreter.HandleCommand(new_command.c_str(), eLazyBoolCalculate, result);
}
}
result.SetStatus(eReturnStatusFailed);
OpenPOWER on IntegriCloud