1#include <unistd.h>
2#include <cstdio>
3
4int main(int argc, char *argv[]) {
5 lldb_enable_attach();
6 execvp(file: argv[1], argv: argv+1);
7 perror(s: "execlp");
8 return 1;
9}
10

source code of lldb/test/API/tools/lldb-server/attach-wait/shim.cpp