[Lldb-commits] [lldb] [lldb] Fix FindProcessImpl() for iOS simulators (PR #139174)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Jun 21 14:51:04 PDT 2025
https://github.com/royitaqi commented:
Hi @JDevlieghere,
> In TestAppleSimulatorOSType there's a snippet that launched a binary with simctl. Could we use that to launch the binary without it being traced?
Done. Kindly take a look when you have the time.
TL;DR changes:
1. Found the snippet you were referring to in `TestAppleSimulatorOSType`.
2. Refactored two functions into `lldbutil`.
3. Used those two functions in `TestSimulatorPlatform` to launch `a.out` separately and find it (by both pid and name).
4. In order to do 3, I had to change `hello.c` into `hello.cpp` so that it prints the pid and also wait for 10s so that the `platform process list` can find it.
I have a **question** regarding 4, about how to make sure that the `hello.cpp` builds in Windows. See inline comment.
https://github.com/llvm/llvm-project/pull/139174
More information about the lldb-commits
mailing list