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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits