[lldb-dev] lldb python API in Ubuntu

2018-02-26 Thread Guolong Zheng via lldb-dev
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 succes

[lldb-dev] Can't create Target on MacOS

2018-10-19 Thread Guolong Zheng via lldb-dev
Hello, I am trying to write lldb python script on MacOS. The script looks like: *import lldb debugger = lldb.SBDebugger.Create() debugger.SetAsync(False) target = debugger.CreateTargetWithFileAndArch ("test", lldb.LLDB_ARCH_DEFAULT) target.BreakpointCreateByLocation("test.c", 12)* The script work