My program spawns a child thread with execvp to run another program in xterm:
char *argv[] = {"xterm",
"-e",
"./anotherProgram",
0
};
execvp("xterm", argv);
I know anotherProgram is running but in gdb, "info thread" doesn't show it. How can I attach the child thread and debug it? Thanks.