Chinaunix首页 | 论坛 | 博客
  • 博客访问: 230986
  • 博文数量: 51
  • 博客积分: 235
  • 博客等级: 入伍新兵
  • 技术积分: 25
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-16 23:16
文章分类

全部博文(51)

文章存档

2016年(3)

2015年(35)

2014年(12)

2013年(1)

分类: Android平台

2015-05-21 16:09:12

原因:
On most systems, gdb has no special support for debugging programs which create additional processes using the fork function. When a program forks, gdb will continue to debug the parent process and the child process will run unimpeded. If you have set a breakpoint in any code which the child then executes, the child will get a SIGTRAP signal which (unless it catches the signal) will cause it to terminate.

解决方法:
set follow-fork-mode child
阅读(4892) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~