[lldb-dev] lldb python API in Ubuntu

Guolong Zheng via lldb-dev lldb-dev at lists.llvm.org
Mon Feb 26 22:07:08 PST 2018


Hi All,

I am running lldb python API in Ubuntu 16.04 LTS. The debugger can launch
any process inside python; and I always got the following SBProcess state:

SBProcess: pid = 0, state =launching, threads = 0, executable = test

I ran the same python code in MacOS X, the process get launched
successfully. Do I need some special configuration on Ubuntu? I have
attached python code below:

import lldb

debugger = lldb.SBDebugger.Create()
debugger.SetAsync(False)
target = debugger.CreateTargetWithFileAndArch ("test",
lldb.LLDB_ARCH_DEFAULT)
target.BreakpointCreateByLocation("test.c", 12)
process = target.LaunchSimple (None, None, os.getcwd())
print process

Thanks,
Guolong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180227/48a0ef09/attachment.html>


More information about the lldb-dev mailing list