2012/05/25

Gdb Cheat Sheet



1 Set gdb to follow fork() or not

set follow-fork-mode parent|child

2 If want to debug both parent and child process (default is on)

set detach-on-fork off

3 Switch between parent and child process
info inferiors
inferior #inferior_number

No comments:

Post a Comment