multi-process debug under Linux

1> follow-fork-mode
usage: set follow-fork-mode
precondition: kernel version > 2.5.60

2> attach sub-process
ps -ef | grep yourprocess

3> GDB wrapper

the bin file:  test
# mv test test.bin
# cat > test
#!/bin/sh
export DISPLAY=yourIP:0.0;
xterm -e gdb tet.bin
^D
#



你可能感兴趣的:(linux,debug,休闲,under,multi-process)