gdb如何设置信号的处理
来源:百度文库 编辑:神马文学网 时间:2024/04/29 15:47:36
gdb如何设置信号的处理
2008-08-12 02:02:09gdb调试的程序所注册的信号处理函数似乎不起作用,因此需要在gdb中设置对信号的处理,使用handle命令。可以设置stop,print,pass三种状态。(gdb) help handleSpecify how to handle a signal.Args are signals and actions to apply to those signals.Symbolic signals (e.g. SIGSEGV) are recommended but numeric signalsfrom 1-15 are allowed for compatibility with old versions of GDB.Numeric ranges may be specified with the form LOW-HIGH (e.g. 1-5).The special arg "all" is recognized to mean all signals except thoseused by the debugger, typically SIGTRAP and SIGINT.Recognized actions include "stop", "nostop", "print", "noprint","pass", "nopass", "ignore", or "noignore".Stop means reenter debugger if this signal happens (implies print).Print means print a message if this signal happens.Pass means let program see this signal; otherwise program doesn't know.Ignore is a synonym for nopass and noignore is a synonym for pass.Pass and Stop may be combined.(gdb) handle SIGPIPESignal StopPrintPass to programDescriptionSIGPIPE YesYesYesBroken pipe(gdb) handle SIGPIPE nostopSignal StopPrintPass to programDescriptionSIGPIPE NoYesYesBroken pipeps1:Linux内核对一个socket的fd write的时候如果另一端挂掉了,那么会出现抛出SIGPIPE信号,FreeBSD就比较酷,在05年的时候修正了这个无厘头的行为ps2:python默认会忽略SIGPIPE信号ref1:http://www.developerweb.net/forum/showthread.php?t=2953ref2:http://lists.freebsd.org/pipermail/freebsd-bugs/2005-March/011883.htmlref3:http://mail.python.org/pipermail/python-dev/2004-August/048174.html
gdb如何设置信号的处理
GDB的条件设置断点功能_Juventus
gdb 的一些资源
gdb
GDB
Linux 多线程应用中如何编写安全的信号处理函数
推荐信号与系统、信号处理书籍的个人看法
除错专家---程序调试的利器GDB
如何设置JDK的环境变量?
如何设置你的麦克风
通达信设置买进卖出信号的小技巧
Linux?信号?处理
如何设置BIOS设置
“邓玉娇案”处理结局是整顿官场的信号
基于MATLAB的音频信号处理技术实现11
12种常见的浮漂信号和处理方法
【转】使用可重入函数进行更安全的信号处理
脑中风的症状 如何处理?
如何处理学生的不敬
[转载]gdb中的信号-源码天堂-华夏名网资讯中心 虚拟主机,域名注册,双线虚拟主机,服务...
【讨论】信号与系统学习心得2——周期信号的傅立叶级数表示(页 1) - 信号处理基础 - ...
ffdshow播放RM格式文件如何设置?_音频/视频处理使用问题_PConline快问
玩QQ农场老是弹出“Adobe Flash Player设置 ”如何处理
如何修改 Internet Explorer 的主页设置?