d*******d 发帖数: 2050 | 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 | c********e 发帖数: 383 | 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
|
|