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

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