summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectMultiword.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-02-06 01:36:07 +0000
committerEnrico Granata <egranata@apple.com>2016-02-06 01:36:07 +0000
commit41571781c01723a64a0d2fa3e82b1b7f3f2c28dc (patch)
tree77748f328d2f3aa97ff5dac3d46cab10769f59b2 /lldb/source/Commands/CommandObjectMultiword.cpp
parent23919372d1db1dba80e8c4697e0a0922e830fc3a (diff)
downloadbcm5719-llvm-41571781c01723a64a0d2fa3e82b1b7f3f2c28dc.tar.gz
bcm5719-llvm-41571781c01723a64a0d2fa3e82b1b7f3f2c28dc.zip
Per Jim's suggestion, move checks that we're not mixing and matching Debuggers and Commands deeper in the bowels of LLDB
NFC llvm-svn: 259972
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectMultiword.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp
index 206f3b6fb7d..ed70551ef37 100644
--- a/lldb/source/Commands/CommandObjectMultiword.cpp
+++ b/lldb/source/Commands/CommandObjectMultiword.cpp
@@ -92,6 +92,9 @@ CommandObjectMultiword::LoadSubCommand
const CommandObjectSP& cmd_obj
)
{
+ if (cmd_obj.get())
+ assert((&GetCommandInterpreter() == &cmd_obj->GetCommandInterpreter()) && "tried to add a CommandObject from a different interpreter");
+
CommandMap::iterator pos;
bool success = true;
OpenPOWER on IntegriCloud