[lldb-dev] Threading model for Python API

2019-08-05 Thread Christian Biesinger via lldb-dev
Hi there! I was wondering what the threading model is for the Python API (when running inside of LLDB, in implementing a command)? For example: If I create a Python thread in my command, how do I access the LLDB API? Is there an equivalent of gdb's post_event function to run it on the main thread

Re: [lldb-dev] Threading model for Python API

2019-08-05 Thread Greg Clayton via lldb-dev
The API is thread safe, but you can run into interesting issues if you don't thread things right. You don't want one thread stepping and another thread resuming. It will work, but you probably will have a tough time figuring out why certain functions return certain values. Also, you don't want o

Re: [lldb-dev] Threading model for Python API

2019-08-05 Thread Christian Biesinger via lldb-dev
OK thanks! (If I try to get, for example, the local variables while the process is running, will that fail or "succeed" in a weird way?) Christian On Mon, Aug 5, 2019 at 11:15 AM Greg Clayton wrote: > > The API is thread safe, but you can run into interesting issues if you don't > thread things

Re: [lldb-dev] Threading model for Python API

2019-08-05 Thread Greg Clayton via lldb-dev
> On Aug 5, 2019, at 9:20 AM, Christian Biesinger wrote: > > OK thanks! (If I try to get, for example, the local variables while > the process is running, will that fail or "succeed" in a weird way?) You will get an empty list. But if you get the list of variables on thread 1, then thread 2 c

[lldb-dev] [Bug 42895] New: Segfault on `p $0`

2019-08-05 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=42895 Bug ID: 42895 Summary: Segfault on `p $0` Product: lldb Version: 8.0 Hardware: PC OS: Linux Status: NEW Severity: enhancement Priority: P Comp

[lldb-dev] [Bug 42895] Segfault on `p $0`

2019-08-05 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=42895 Davide Italiano changed: What|Removed |Added Assignee|lldb-dev@lists.llvm.org |teempe...@gmail.com -- You are receiving thi

[lldb-dev] [Bug 21746] -var-update is unable to show updates for all registered varobjects

2019-08-05 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=21746 Jonas Devlieghere changed: What|Removed |Added Resolution|--- |MOVED Status|NEW

[lldb-dev] [Bug 42895] Segfault on `p $0`

2019-08-05 Thread via lldb-dev
https://bugs.llvm.org/show_bug.cgi?id=42895 Davide Italiano changed: What|Removed |Added Assignee|teempe...@gmail.com |lldb-dev@lists.llvm.org --- Comment #3 from D