由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 问个问题,关于gdb的
相关主题
gdb debug c++的问题debug error unable to automatically step into the server in (转载)
VS里debug不work求教!interview problem about GDB (转载)
那里有讲解的比较清楚的gdb manualHow to avoid getting "has encountered a problem and needs to close" window
A question about Debugginghow to turn off "ActiveX Control Test Container"?
[合集] Debugging large macro只有executable能debug吗?
fork(): why both if and else are executed?再问个fork的题 (转载)
请问在ASP.net中用Javascript的一个问题visual studio 2010 release mode 问题
SQL debug step into a store procedure from another one (转载)C++ Q17: throw 2
相关话题的讨论汇总
话题: gdb话题: child话题: debug话题: sigtrap话题: signal
进入Programming版参与讨论
1 (共1页)
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

1 (共1页)
进入Programming版参与讨论
相关主题
C++ Q17: throw 2[合集] Debugging large macro
try catch questionfork(): why both if and else are executed?
Exception 问题求助请问在ASP.net中用Javascript的一个问题
how to debug mpi?SQL debug step into a store procedure from another one (转载)
gdb debug c++的问题debug error unable to automatically step into the server in (转载)
VS里debug不work求教!interview problem about GDB (转载)
那里有讲解的比较清楚的gdb manualHow to avoid getting "has encountered a problem and needs to close" window
A question about Debugginghow to turn off "ActiveX Control Test Container"?
相关话题的讨论汇总
话题: gdb话题: child话题: debug话题: sigtrap话题: signal