From cd8b2bbed2f5164791478806015addeaaddebbba Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 14 Oct 2010 16:36:49 +0000 Subject: Change the call within lldb.py to 'SBDebugger.Initialize()' from 'lldb.SBDebugger.Initialize()'. Inside the lldb module, there's no need (and as a matter of fact, incorrect) to specify the 'lldb' module name. Comment out the call to lldb.SBDebugger.Initialize() within the test driver itself, since it is already done when we import the lldb.py module. llvm-svn: 116485 --- lldb/scripts/Python/append-debugger-id.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lldb/scripts/Python/append-debugger-id.py') diff --git a/lldb/scripts/Python/append-debugger-id.py b/lldb/scripts/Python/append-debugger-id.py index 26460c8dc40..474443a0c89 100644 --- a/lldb/scripts/Python/append-debugger-id.py +++ b/lldb/scripts/Python/append-debugger-id.py @@ -5,6 +5,9 @@ # module (which was automatically generated via running swig), and # initializes it to 0. # +# It also calls SBDebugger.Initialize() to initialize the lldb debugger +# subsystem. +# import sys @@ -21,7 +24,7 @@ except IOError: print "Error: Unable to open file for appending: " + output_name else: f_out.write ("debugger_unique_id = 0\n"); - f_out.write ("lldb.SBDebugger.Initialize()\n"); + f_out.write ("SBDebugger.Initialize()\n"); try: f_out.close() except IOError: -- cgit v1.2.3