[Bug 24759] New: The example "Using the lldb.py module in python" is not working on Linux

Bug ID 24759
Summary The example “Using the lldb.py module in python” is not working on Linux
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter Louis.Granboulan.Developer@gmail.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

From [http://lldb.llvm.org/python-reference.html](http://lldb.llvm.org/python-reference.html) 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 [http://llvm.org/apt/trusty/](http://llvm.org/apt/trusty/) (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 [http://lldb.llvm.org/python-reference.html](http://lldb.llvm.org/python-reference.html) is working, but
there are other bugs, for example process.Continue() is not working.

labath@google.com changed bug 24759

What | Removed | Added |

  • | - | - |
    Status | NEW | RESOLVED |
    CC | | labath@google.com |
    Resolution | — | WORKSFORME |

Comment # 3 on bug 24759 from labath@google.com

Seems to work fine (for lldb 3.9 at least).