[Lldb-commits] [lldb] r135933 - /lldb/trunk/source/Commands/CommandObjectType.cpp

Enrico Granata granata.enrico at gmail.com
Mon Jul 25 11:59:15 PDT 2011


Author: enrico
Date: Mon Jul 25 13:59:15 2011
New Revision: 135933

URL: http://llvm.org/viewvc/llvm-project?rev=135933&view=rev
Log:
Python synthetic providers must provide a num_children call; this was not specified in the docs up to now

Modified:
    lldb/trunk/source/Commands/CommandObjectType.cpp

Modified: lldb/trunk/source/Commands/CommandObjectType.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectType.cpp?rev=135933&r1=135932&r2=135933&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectType.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectType.cpp Mon Jul 25 13:59:15 2011
@@ -2372,10 +2372,11 @@
 //-------------------------------------------------------------------------
 
 static const char *g_synth_addreader_instructions =   "Enter your Python command(s). Type 'DONE' to end.\n"
-                                                      "You must define a Python class with three methods:\n"
-                                                      "def __init__(self, valobj, dict):\n"
-                                                      "def get_child_at_index(self, index):\n"
-                                                      "def get_child_index(self, name):\n"
+                                                      "You must define a Python class with these methods:\n"
+                                                      "     def __init__(self, valobj, dict):\n"
+                                                      "     def num_children(self):\n"
+                                                      "     def get_child_at_index(self, index):\n"
+                                                      "     def get_child_index(self, name):\n"
                                                       "class synthProvider:";
 
 class TypeSynthAddInputReader : public InputReaderEZ





More information about the lldb-commits mailing list