vern@2007-08-13:/var% ls tags

gdb调试子进程

FROM:http://blog.csdn.net/wwwsq/archive/2006/09/01/1154786.aspx

$ gdb someprog
> set follow-fork-mode child
> break somewhere
> run someargs