xref: /llvm-project/lldb/test/API/tools/lldb-server/attach-wait/shim.cpp (revision 82ba3f44657ac91b4bef95dbf647dfbab482e502)
1*82ba3f44SPavel Labath #include <unistd.h>
2*82ba3f44SPavel Labath #include <cstdio>
3*82ba3f44SPavel Labath 
main(int argc,char * argv[])4*82ba3f44SPavel Labath int main(int argc, char *argv[]) {
5*82ba3f44SPavel Labath   lldb_enable_attach();
6*82ba3f44SPavel Labath   execvp(argv[1], argv+1);
7*82ba3f44SPavel Labath   perror("execlp");
8*82ba3f44SPavel Labath   return 1;
9*82ba3f44SPavel Labath }
10