summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2013-03-15 22:18:26 +0000
committerJim Ingham <jingham@apple.com>2013-03-15 22:18:26 +0000
commit31938cad9cfb33fc9dffbe570286bd6253e59fac (patch)
tree6ffb5988556962d1c97be57dbc6583b295fdb389 /lldb/source/Interpreter/CommandObjectRegexCommand.cpp
parent49491f7861006ed1cf026203f74f937fb9b16e18 (diff)
downloadbcm5719-llvm-31938cad9cfb33fc9dffbe570286bd6253e59fac.tar.gz
bcm5719-llvm-31938cad9cfb33fc9dffbe570286bd6253e59fac.zip
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. <rdar://problem/13411771> llvm-svn: 177195
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectRegexCommand.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObjectRegexCommand.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
index 5ee44e24903..05d6e09b6b1 100644
--- a/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
+++ b/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
@@ -80,7 +80,9 @@ CommandObjectRegexCommand::DoExecute
// Interpret the new command and return this as the result!
if (m_interpreter.GetExpandRegexAliases())
result.GetOutputStream().Printf("%s\n", new_command.c_str());
- 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);
}
}
result.SetStatus(eReturnStatusFailed);
OpenPOWER on IntegriCloud