Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1458794
  • 博文数量: 596
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 173
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-06 15:50
个人简介

在线笔记

文章分类

全部博文(596)

文章存档

2016年(1)

2015年(104)

2014年(228)

2013年(226)

2012年(26)

2011年(11)

分类: Android平台

2015-01-19 14:44:15

原因:
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
阅读(4421) | 评论(0) | 转发(1) |
0

上一篇:mingw nmake gnu_make

下一篇:mingw gdb .gdbinit

给主人留下些什么吧!~~