[hellogcc] Re: [Code::Blocks中国开发组] Re: 如何避免gdb的python脚本在解析未初始化变量的时候崩溃?

  • From: asmwarrior <asmwarrior@xxxxxxxxx>
  • To: xunxun <xunxun1982@xxxxxxxxx>
  • Date: Fri, 18 Nov 2011 09:30:58 +0800

关于QTCreator里面使用的两个方法来显示复杂的对象
Debug helper
和
python

可以见:
http://doc.qt.nokia.com/qtcreator-2.3/creator-debugging-helpers.html

我感觉:
使用Debug helper就是在正常调试某个debugee的时候,再装载一个dll,(实际上
有点像dll注入)
然后利用dll(shared library)提供的一些接口,去访问debugee的内容,最终达
到显示debugee内部
数据的功能。

另外一个原因,主要是gdb的python支持,目前不是太理想,很多平台(例如
mac),都还没有python pretty printer的gdb支持。

PS:@Yao
你是GDB高手,是否能给gdb的python脚本崩溃出点办法?

谢谢


Other related posts: