xref: /llvm-project/lldb/test/API/functionalities/exec/main.c (revision a8bc9b627ea143b84253fc911902cf2c8e429630)
1*a8bc9b62SJonas Devlieghere #include <stdio.h>
2*a8bc9b62SJonas Devlieghere #include <stdlib.h>
3*a8bc9b62SJonas Devlieghere #include <unistd.h>
4*a8bc9b62SJonas Devlieghere 
main(int argc,char const ** argv)5*a8bc9b62SJonas Devlieghere int main(int argc, char const **argv) {
6*a8bc9b62SJonas Devlieghere   // Set breakpoint 1 here
7*a8bc9b62SJonas Devlieghere   execl("secondprog", "secondprog", NULL);
8*a8bc9b62SJonas Devlieghere   perror("execve");
9*a8bc9b62SJonas Devlieghere   abort();
10*a8bc9b62SJonas Devlieghere }
11