[Lldb-commits] [lldb] Fix flake in TestZerothFrame.py (PR #96685)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 25 18:43:00 PDT 2024


JDevlieghere wrote:

> Sounds reasonable. I'll work that out with a helper method and resend for review once I upload a new commit. @bulbazord any idea how I can access the module from the `SBThread` object, to compare it against the name `a.out`? I'm having trouble finding the right API.

The module is a property of the target, so you could do:

```
process = thread.GetProcess()
target = process.GetTarget()
module = target.GetModuleAtIndex(0)
```

or you can create an ExecutionContext from the thread, and get the target from that:

```
exe_ctx = SBExecutionContext(thread)
exe_ctx.target.GetModuleAtIndex(0)
``` 


https://github.com/llvm/llvm-project/pull/96685


More information about the lldb-commits mailing list