diff options
author | Enrico Granata <egranata@apple.com> | 2016-04-20 20:48:05 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2016-04-20 20:48:05 +0000 |
commit | 612917c784dc7b42b3138cae1cc496c877f5d40a (patch) | |
tree | bb17cfce3c14971cf9d9c6730817e2536218da7e /lldb/source/Commands/CommandObjectMultiword.cpp | |
parent | 32773333cbda0c2ca8a643b82fca24a13bc70233 (diff) | |
download | llvm-612917c784dc7b42b3138cae1cc496c877f5d40a.zip llvm-612917c784dc7b42b3138cae1cc496c877f5d40a.tar.gz llvm-612917c784dc7b42b3138cae1cc496c877f5d40a.tar.bz2 |
Fix a bug where LLDB would crash if 'apropos <anything>' was used after spawning an inferior process
llvm-svn: 266911
Diffstat (limited to 'lldb/source/Commands/CommandObjectMultiword.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectMultiword.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectMultiword.cpp b/lldb/source/Commands/CommandObjectMultiword.cpp index 887ce24..ae19976 100644 --- a/lldb/source/Commands/CommandObjectMultiword.cpp +++ b/lldb/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) { |