设置gdb以支持显示stl容器内容

在用户目录下创建.gdbinit文件,内容如下:pythonimport syssys.path.insert(0, '/opt/gcc10.2/share/gcc-10.2.0/python')from libstdcxx.v6.printers import register_libstdcxx
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×