gdb
How to set gdb to follow the child process as well?
By typing in set follow-fork-mode child when launched gdb and before running.
By default, when a program forks, GDB will continue to debug the parent process and the child process will run unimpeded. If you want to follow the child process instead of the parent process, use the command set follow-fork-mode . Set the debugger response to a program call of fork or vfork .
When you want to debug B in another process which is a child process of A, then you have to set this mode.
By typing in set follow-fork-mode child when launched gdb and before running.
By default, when a program forks, GDB will continue to debug the parent process and the child process will run unimpeded. If you want to follow the child process instead of the parent process, use the command set follow-fork-mode . Set the debugger response to a program call of fork or vfork .
When you want to debug B in another process which is a child process of A, then you have to set this mode.
Comments
Post a Comment