<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - The example "Using the lldb.py module in python" is not working on Linux"
   href="https://llvm.org/bugs/show_bug.cgi?id=24759">24759</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>The example "Using the lldb.py module in python" is not working on Linux
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>Louis.Granboulan.Developer@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>From <a href="http://lldb.llvm.org/python-reference.html">http://lldb.llvm.org/python-reference.html</a> there is a python script in the
section "Using the lldb.py module in python".
My testing procedure is to launch it on an empty program: the compilation of
"int main(){}".

On MacOSX, "print process" shows "pid = xxx, state = stopped, threads = 1",
which is the value expected.

On Linux, "print process" shows "pid = 0, state = launching, threads = 0",
which seems to be unexpected.
I have made this test on a Ubuntu 14.04 (64 bits) with the packaged version of
lldb downloaded from <a href="http://llvm.org/apt/trusty/">http://llvm.org/apt/trusty/</a> (llvm-toolchain-trusty).
GetVersionString() returns "lldb version 3.8.0 ( revision )".

Note that when using an older version of lldb (the lldb-3.6 packaged with
Ubuntu 14.04) "print process" returns the same value as on MacOSX and the
example script from <a href="http://lldb.llvm.org/python-reference.html">http://lldb.llvm.org/python-reference.html</a> is working, but
there are other bugs, for example process.Continue() is not working.</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>