[Lldb-commits] [lldb] [lldb] Fix FindProcessImpl() for iOS simulators (PR #139174)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Jun 20 13:54:28 PDT 2025
JDevlieghere wrote:
> I think I know why - it's by design: In the `Host::FindProcessImpl()` for iOS simulator, after getting all processes in the macOS, it filters out the processes which are being debugged ([here](https://github.com/llvm/llvm-project/blob/b5dbf8210a57b986b9802304745f4c5c108cf37b/lldb/source/Host/macosx/objcxx/Host.mm#L724)). `a.out` is of course being debugged (by the test case) and got filtered out.
Ah, that's unfortunate, but good catch. In `TestAppleSimulatorOSType` there's a snippet that launched a binary with `simctl`. Could we use that to launch the binary without it being traced?
```
$ xcrun simctl spawn -s <device uuid> <path/to/binary>
```
https://github.com/llvm/llvm-project/pull/139174
More information about the lldb-commits
mailing list