That worked at the time, but something seems to have broken the python wrapper for the long version of SBTarget::Launch. Probably in 10.8.something
This works:
target.LaunchSimple([‘X’, ‘Y’, ‘Z’], None, os.getcwd())
This does not:
target.Launch(debugger.GetListener(), [‘X’, ‘Y’, ‘Z’], None,
None, ‘/tmp/stdout.txt’, None,
None, 0, False, error)
The error is:
File “/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/Python/lldb/init.py”, line 6351, in Launch
return _lldb.SBTarget_Launch(self, *args)
NotImplementedError: Wrong number of arguments for overloaded function ‘SBTarget_Launch’.
Possible C/C++ prototypes are:
Launch(lldb::SBTarget *,lldb::SBListener &,char const **,char const **,char const *,char const *,char const *,char const *,uint32_t,bool,lldb::SBError &)
Launch(lldb::SBTarget *,lldb::SBLaunchInfo &,lldb::SBError &)
Passing None for the argv parameter works fine, but a list or a tuple (even empty) gives that error.
-Greg