From f4ca30d74bafd6f70a48ab2daaa030146954ed60 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Mon, 20 Feb 2012 22:05:47 +0000 Subject: fixing documentation to refer to the correct name of the module init function __lldb_init_module llvm-svn: 150992 --- lldb/www/python-reference.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/www/python-reference.html') 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:

-
def __lldb_module_init(debugger, dict):
+
def __lldb_init_module(debugger, dict):
     # Command Initialization code goes here
 
@@ -359,7 +359,7 @@ def ls(debugger, command, result, dict): result.PutCString(commands.getoutput('/bin/ls %s' % command)) # And the initialization code to add your commands -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.'
-- cgit v1.2.3