GDB Python pretty printers配置打印c++中stl库容器
2013-04-18 18:09
465 查看
转自:http://lumiera.org/documentation/technical/howto/DebugGdbPretty.html
Installation notes
This feature requires an python enabled GDB (>6.8.50). Actually, even the most recent stableGDB (Version 7.2) is recommended, because it contains some relevant bugfixes. Debian usersmight want to backport the the GDB package from Debian/Wheezy (GDB-7.2).Moreover,you need to check out and install a recent version of the python pretty-printersfrom the GNU Subversion repository:
svn checkout
svn://gcc.gnu.org/svn/gcc/trunk/libstdc++-v3/python stlPrettyPrinter
you need to activate them explicitly through your +~/.gdbinit
# # .gdbinit : GDB Config file # # 3/2010 - Ichthyo: add python pretty printers for STL python import sys sys.path.insert(0, '/opt/gdb/stlPrettyPrinter') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end
相关文章推荐
- GDB配置(打印STL容器、VS code配置、远程调试debug)
- 配置GDB以支持查看stl容器数据
- 在eclipse用gdb调试stl容器配置
- GDB打印STL容器内容
- ubuntu里安装python脚本,让C++的容器可以在gdb中看见
- 配置GDB以支持查看stl容器数据
- [ZZ]配置GDB以支持查看stl容器数据
- 配置GDB以支持查看stl容器数据
- 配置GDB以支持查看stl容器数据
- 配置GDB以支持查看stl容器数据
- 配置GDB以支持查看stl容器数据
- GDB教程详解&打印STL容器
- GDB教程详解&打印STL容器
- gdb调试c++的STL容器
- GDB pretty printer: linux下用gdb调试c++时如何更好的查看STL容器值
- C++ STL相关容器详解
- C++ STL学习容器deque深入学习
- C++STL中vector容器 begin()与end()函数、front()与back()的用法
- C++ STL模板与容器 知识 初学 小结 ( 二 )
- c++ STL 容器——联合容器