• 调试指令如下 gdb fork set follow fork mode child set detach on fork off b fork cpp 13 r 打断点可以打到fork的位置 这样就可以进入到子进程调试 follow fo