【发布时间】:2013-12-19 12:12:08
【问题描述】:
我有 Ubuntu 13.10 和 GDB 7.6.1,我从 http://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/ 下载了 STL_pretty_printers 并按照说明运行。
当我第一次运行 gdb 时,我收到一条 python Traceback 消息,上面写着:
raise ValueError , "Cannot parse more than 2 nodes in a tuple tree."
在修改了一些代码后,我发现所有 raise ValueError 行都应该更改为
raise ValueError("Cannot parsing more than 2 nodes in a tuple tree.")
之后我尝试运行一个小型测试程序(填充向量),当我尝试显示向量的内容时,我得到了
Python Exception iter() 返回了 '_iterator' 类型的非迭代器:
【问题讨论】: