<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:Louis.Granboulan.Developer@gmail.com" title="Louis.Granboulan.Developer@gmail.com">Louis.Granboulan.Developer@gmail.com</a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - The example "Using the lldb.py module in python" is not working on Linux"
href="https://bugs.llvm.org/show_bug.cgi?id=24759">bug 24759</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>WORKSFORME
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - The example "Using the lldb.py module in python" is not working on Linux"
href="https://bugs.llvm.org/show_bug.cgi?id=24759#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - The example "Using the lldb.py module in python" is not working on Linux"
href="https://bugs.llvm.org/show_bug.cgi?id=24759">bug 24759</a>
from <span class="vcard"><a class="email" href="mailto:Louis.Granboulan.Developer@gmail.com" title="Louis.Granboulan.Developer@gmail.com">Louis.Granboulan.Developer@gmail.com</a>
</span></b>
<pre>I still have the same issue with lldb-3.9.
Here are more details, which may help to understand why it is not teh same for
you.
I compiled a C file containing only "int main(){}" in a binary at /tmp/a.out
Here is an extract from the script at
<a href="http://lldb.llvm.org/python-reference.html">http://lldb.llvm.org/python-reference.html</a> which reproduces the behaviour.
#!/usr/bin/python
import lldb, os, sys
exe = "/tmp/a.out"
debugger = lldb.SBDebugger.Create()
print debugger.GetVersionString()
debugger.SetAsync (False)
target = debugger.CreateTargetWithFileAndArch (exe, lldb.LLDB_ARCH_DEFAULT)
if not target:
print "CreateTargetWithFileAndArch failed"
sys.exit(1)
main_bp = target.BreakpointCreateByName ("main",
target.GetExecutable().GetFilename())
print main_bp
process = target.LaunchSimple (None, None, os.getcwd())
print process
On MacOSX, the output is:
lldb-360.1.70
Creating a target for '/tmp/a.out'
SBBreakpoint: id = 1, name = 'main', module = a.out, locations = 1
SBProcess: pid = 10449, state = stopped, threads = 1, executable = a.out
On Linux, where lldb-3.9.1 is installed using the apt repository from
<a href="http://apt.llvm.org/jessie/">http://apt.llvm.org/jessie/</a> the output is:
lldb version 3.9.1 ( revision )
SBBreakpoint: id = 1, name = 'main', module = a.out, locations = 1
SBProcess: pid = 0, state = launching, threads = 0, executable = a.out
It is not the same output, and the fact that the process is "launching" rather
than "stopped" makes the rest of the script from
<a href="http://lldb.llvm.org/python-reference.html">http://lldb.llvm.org/python-reference.html</a> useless.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>