[hellogcc] Re: 使用gdb pretty printer调试go dist

  • From: asmwarrior <asmwarrior@xxxxxxxxx>
  • To: hellogcc@xxxxxxxxxxxxx
  • Date: Sun, 29 Sep 2013 17:13:42 +0800

On 2013-9-29 16:45, Mingjie Xing wrote:
> 大家好:
>
> 最近花了点时间了解了下gdb pretty
> printer,并结合一个例子,写了代码和文章,参见http://www.hellogcc.org/?p=33507。欢迎提供建议。
写得很好啊!赞。
>
> 另外,我按照gdb手册上“23.2.2.7 Writing a
> Pretty-Printer”的第一个例子方法,编写一个lookup函数的方式,没有成功,现在只是用第二种例子方法实现的。
我感觉第一种方法在较老版本的GDB里面使用(以前看到过),但是我不太懂python,失败的原因不得而知。
我一般加载libstdc++和wxWidgets的python pretty printer都是采用第二种例子的形式。


Other related posts: