1#include <stdio.h>
2#include <stdlib.h>
3#include <unistd.h>
4
5int main(int argc, char const **argv) {
6 // Set breakpoint 1 here
7 execl(path: "secondprog", arg: "secondprog", NULL);
8 perror(s: "execve");
9 abort();
10}
11

source code of lldb/test/API/functionalities/exec/main.c