summaryrefslogtreecommitdiffstats
path: root/lldb/www/python-reference.html
diff options
context:
space:
mode:
authorEnrico Granata <granata.enrico@gmail.com>2012-02-20 22:05:47 +0000
committerEnrico Granata <granata.enrico@gmail.com>2012-02-20 22:05:47 +0000
commitf4ca30d74bafd6f70a48ab2daaa030146954ed60 (patch)
treed93838247ad75cde95f4e4195d2d530e72846e9f /lldb/www/python-reference.html
parent9b44acd86b9b48f8f263b2c390345d05f8341a52 (diff)
downloadbcm5719-llvm-f4ca30d74bafd6f70a48ab2daaa030146954ed60.tar.gz
bcm5719-llvm-f4ca30d74bafd6f70a48ab2daaa030146954ed60.zip
fixing documentation to refer to the correct name of the module init function __lldb_init_module
llvm-svn: 150992
Diffstat (limited to 'lldb/www/python-reference.html')
-rwxr-xr-xlldb/www/python-reference.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/www/python-reference.html b/lldb/www/python-reference.html
index 149ef15ba3b..4c2bc5c2e26 100755
--- a/lldb/www/python-reference.html
+++ b/lldb/www/python-reference.html
@@ -318,7 +318,7 @@ Enter your Python command(s). Type 'DONE' to end.
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>
</tt></pre></code>
@@ -359,7 +359,7 @@ def ls(debugger, command, result, dict):
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.'
</tt></pre></code>
OpenPOWER on IntegriCloud