diff options
author | Enrico Granata <egranata@apple.com> | 2013-02-21 23:57:25 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-02-21 23:57:25 +0000 |
commit | d2f16e2c2dfb8a5b46c8e7222eb75d16c7453eb5 (patch) | |
tree | f6464f6aebb6eee53c399462e0911b78af0c234a /lldb/source/Commands/CommandObjectMultiword.cpp | |
parent | fe03e40d837ed2291de7f667d760709358f50c1f (diff) | |
download | llvm-d2f16e2c2dfb8a5b46c8e7222eb75d16c7453eb5.zip llvm-d2f16e2c2dfb8a5b46c8e7222eb75d16c7453eb5.tar.gz llvm-d2f16e2c2dfb8a5b46c8e7222eb75d16c7453eb5.tar.bz2 |
<rdar://problem/13265017>
The notion of Crossref command has long been forgotten, and there is nothing using CommandObjectCrossref in the current LLDB codebase
However, this was causing a conflict with process plugins and command aliases ending up in an infinite loop under situations such as:
(lldb) command alias monitor process plugin packet monitor
(lldb) process att -n Calendar
Process 28709 stopped
Executable module set to "/Applications/Calendar.app/Contents/MacOS/Calendar".
Architecture set to: x86_64-apple-macosx.
(lldb) command alias monitor process plugin packet monitor
This fixes the loop (and consequent crash) by disposing of Crossref commands and related code
llvm-svn: 175831
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMultiword.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp index c87a9d7..bfb5132 100644 --- a/lldb/source/Commands/CommandObjectMultiword.cpp +++ b/lldb/source/Commands/CommandObjectMultiword.cpp @@ -101,7 +101,6 @@ CommandObjectMultiword::LoadSubCommand if (pos == m_subcommand_dict.end()) { m_subcommand_dict[name] = cmd_obj; - m_interpreter.CrossRegisterCommand (name, GetCommandName()); } else success = false; @@ -365,23 +364,6 @@ CommandObjectProxy::GetHelpLong () return NULL; } -void -CommandObjectProxy::AddObject (const char *obj_name) -{ - CommandObject *proxy_command = GetProxyCommandObject(); - if (proxy_command) - return proxy_command->AddObject (obj_name); -} - -bool -CommandObjectProxy::IsCrossRefObject () -{ - CommandObject *proxy_command = GetProxyCommandObject(); - if (proxy_command) - return proxy_command->IsCrossRefObject(); - return false; -} - bool CommandObjectProxy::IsRemovable() const { |