Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10495047
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-03-23 11:26:37

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
#



阅读(638) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~