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

Provided by KDAB

Privacy Policy
Update your C++ knowledge – Modern C++11/14/17 Training
Find out more

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