From 5f5ab60274277be5af7765d0fd288fe2c454e164 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Thu, 31 May 2012 01:09:06 +0000 Subject: 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 --- lldb/source/Interpreter/CommandObjectRegexCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp') 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); -- cgit v1.2.3