[Lldb-commits] [lldb] r252122 - CommandObjectProxy needs to proxy GenerateHelpText as well as

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 4 17:18:07 PST 2015


Author: jingham
Date: Wed Nov  4 19:18:07 2015
New Revision: 252122

URL: http://llvm.org/viewvc/llvm-project?rev=252122&view=rev
Log:
CommandObjectProxy needs to proxy GenerateHelpText as well as
everything else.

<rdar://problem/18383591>

Modified:
    lldb/trunk/include/lldb/Interpreter/CommandObjectMultiword.h
    lldb/trunk/source/Commands/CommandObjectMultiword.cpp

Modified: lldb/trunk/include/lldb/Interpreter/CommandObjectMultiword.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Interpreter/CommandObjectMultiword.h?rev=252122&r1=252121&r2=252122&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Interpreter/CommandObjectMultiword.h (original)
+++ lldb/trunk/include/lldb/Interpreter/CommandObjectMultiword.h Wed Nov  4 19:18:07 2015
@@ -126,6 +126,9 @@ public:
     bool
     IsMultiwordObject() override;
     
+    void
+    GenerateHelpText (Stream &result) override;
+    
     lldb::CommandObjectSP
     GetSubcommandSP(const char *sub_cmd, StringList *matches = nullptr) override;
     

Modified: lldb/trunk/source/Commands/CommandObjectMultiword.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectMultiword.cpp?rev=252122&r1=252121&r2=252122&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectMultiword.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectMultiword.cpp Wed Nov  4 19:18:07 2015
@@ -382,6 +382,14 @@ CommandObjectProxy::IsMultiwordObject ()
     return false;
 }
 
+void
+CommandObjectProxy::GenerateHelpText (Stream &result)
+{
+    CommandObject *proxy_command = GetProxyCommandObject();
+    if (proxy_command)
+        return proxy_command->GenerateHelpText(result);
+}
+
 lldb::CommandObjectSP
 CommandObjectProxy::GetSubcommandSP (const char *sub_cmd, StringList *matches)
 {




More information about the lldb-commits mailing list