[Lldb-commits] [lldb] r177195 - The regular expression command object was resetting the execution context of the
jingham at apple.com
Fri Mar 15 15:18:26 PDT 2013
Date: Fri Mar 15 17:18:26 2013
New Revision: 177195
The regular expression command object was resetting the execution context of the
resolved command, which it should not do. It should adopt whatever context the
regular expression command was called with. This was causing regular expression
commands run inside breakpoint commands to adopt the currently selected context,
not the one coming from the breakpoint that we hit.
--- lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandObjectRegexCommand.cpp Fri Mar 15 17:18:26 2013
@@ -80,7 +80,9 @@ CommandObjectRegexCommand::DoExecute
// Interpret the new command and return this as the result!
- return m_interpreter.HandleCommand(new_command.c_str(), eLazyBoolCalculate, result);
+ // Pass in true for "no context switching". The command that called us should have set up the context
+ // appropriately, we shouldn't have to redo that.
+ return m_interpreter.HandleCommand(new_command.c_str(), eLazyBoolCalculate, result, NULL, true, true);
More information about the lldb-commits