llvm/lldb/test/API/tools/lldb-server/attach-wait/shim.cpp

#include <unistd.h>
#include <cstdio>

int main(int argc, char *argv[]) {
  lldb_enable_attach();
  execvp(argv[1], argv+1);
  perror("execlp");
  return 1;
}