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
This commit is contained in:
Johnny Chen 2010-10-14 16:36:49 +00:00
parent bee6e9f8e0
commit cd8b2bbed2
2 changed files with 7 additions and 2 deletions

View File

@ -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:

View File

@ -488,7 +488,9 @@ for testdir in testdirs:
# For the time being, let's bracket the test runner within the
# lldb.SBDebugger.Initialize()/Terminate() pair.
import lldb, atexit
lldb.SBDebugger.Initialize()
# Update: the act of importing lldb now executes lldb.SBDebugger.Initialize(),
# there's no need to call it a second time.
#lldb.SBDebugger.Initialize()
atexit.register(lambda: lldb.SBDebugger.Terminate())
# Create a singleton SBDebugger in the lldb namespace.