summaryrefslogtreecommitdiff
path: root/source/Commands/CommandObjectMultiword.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-04-20 20:48:05 +0000
committerEnrico Granata <egranata@apple.com>2016-04-20 20:48:05 +0000
commit4c6cd571d5cd1a6758a315ab2a4fbf28aaf21a7e (patch)
tree13135c47e21de2daec941199118a21e183b21601 /source/Commands/CommandObjectMultiword.cpp
parent98343c817870d19df26d4aef329f60b6e4edc746 (diff)
Fix a bug where LLDB would crash if 'apropos <anything>' was used after spawning an inferior process
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@266911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/Commands/CommandObjectMultiword.cpp')
-rw-r--r--source/Commands/CommandObjectMultiword.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Commands/CommandObjectMultiword.cpp b/source/Commands/CommandObjectMultiword.cpp
index 887ce2476..ae19976b8 100644
--- a/source/Commands/CommandObjectMultiword.cpp
+++ b/source/Commands/CommandObjectMultiword.cpp
@@ -367,6 +367,15 @@ CommandObjectProxy::IsMultiwordObject ()
return false;
}
+CommandObjectMultiword*
+CommandObjectProxy::GetAsMultiwordCommand ()
+{
+ CommandObject *proxy_command = GetProxyCommandObject();
+ if (proxy_command)
+ return proxy_command->GetAsMultiwordCommand();
+ return nullptr;
+}
+
void
CommandObjectProxy::GenerateHelpText (Stream &result)
{