[Lldb-commits] [lldb] r150992 - /lldb/trunk/www/python-reference.html

Enrico Granata granata.enrico at gmail.com
Mon Feb 20 14:05:48 PST 2012

Author: enrico
Date: Mon Feb 20 16:05:47 2012
New Revision: 150992

URL: http://llvm.org/viewvc/llvm-project?rev=150992&view=rev
fixing documentation to refer to the correct name of the module init function __lldb_init_module


Modified: lldb/trunk/www/python-reference.html
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/python-reference.html?rev=150992&r1=150991&r2=150992&view=diff
--- lldb/trunk/www/python-reference.html (original)
+++ lldb/trunk/www/python-reference.html Mon Feb 20 16:05:47 2012
@@ -318,7 +318,7 @@
           don't have to change your PYTHONPATH for temporary scripts.  It also has another convenience
           that if your new script module has a function of the form:</p>
-<code><pre><tt>def __lldb_module_init(<b>debugger</b>, <b>dict</b>):
+<code><pre><tt>def __lldb_init_module(<b>debugger</b>, <b>dict</b>):
     <font color=green># Command Initialization code goes here</font>
@@ -359,7 +359,7 @@
     result.PutCString(commands.getoutput('/bin/ls %s' % command))
 <font color=green># And the initialization code to add your commands </font>
-def __lldb_module_init(debugger, dict):
+def __lldb_init_module(debugger, dict):
     debugger.HandleCommand('command script add -f ls.ls ls')
     print 'The "ls" python command has been installed and is ready for use.'

More information about the lldb-commits mailing list