avatar
问个问题,关于gdb的# Programming - 葵花宝典
d*d
1
【 以下文字转载自 SanFrancisco 讨论区 】
发信人: dinohound (dino), 信区: SanFrancisco
标 题: 问个问题,关于gdb的
发信站: BBS 未名空间站 (Tue Sep 11 17:35:15 2007), 转信
在linux本机上用gdb/ddd debug程序,一切正常。
可是,如果用ssh/vnc remote登陆上去后,做同样的事情,gdb will give out the er
ror said"Program terminated with signal SIGTRAP"。
这个是为什么?//bow
avatar
c*e
2
info gdb
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.
However, if you want to debug the child process there is a workaround
whi

【在 d*******d 的大作中提到】
: 【 以下文字转载自 SanFrancisco 讨论区 】
: 发信人: dinohound (dino), 信区: SanFrancisco
: 标 题: 问个问题,关于gdb的
: 发信站: BBS 未名空间站 (Tue Sep 11 17:35:15 2007), 转信
: 在linux本机上用gdb/ddd debug程序,一切正常。
: 可是,如果用ssh/vnc remote登陆上去后,做同样的事情,gdb will give out the er
: ror said"Program terminated with signal SIGTRAP"。
: 这个是为什么?//bow

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。