GDB支持STL可视化(漂亮打印)
GDB 7.0 为 STL 对象添加了漂亮的打印。然而,此实现仅支持 GCC 版本的 STL。例如,如果您使用 Dinkum STL 实现,您可能会看到以下消息:
File "c:/development/bbndk/python\libstdcxx\v6\printers.py", line 588, in to_string
ptr = self.val ['_M_dataplus']['_M_p']
gdb.error: There is no member or method named _M_dataplus.
Does 有人知道与 Dinkum 兼容的漂亮打印机库的开源或商业实现吗?
GDB 7.0 added pretty prnting for STL object. However this implementation supports only GCC version of STL. If you are using Dinkum STL implementation for example, you probably see this message:
File "c:/development/bbndk/python\libstdcxx\v6\printers.py", line 588, in to_string
ptr = self.val ['_M_dataplus']['_M_p']
gdb.error: There is no member or method named _M_dataplus.
Does anybody knows about open source or commertial implementation of pretty printer library compatible with Dinkum?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
修改 libstdcxx/v6/printers.py 以使用 Dinkum STL 应该非常简单。
有谁知道与 Dinkum Ask Dinkum
Modifying libstdcxx/v6/printers.py to work with Dinkum STL ought to be pretty trivial.
Ask Dinkum?