c++ - 如何在 gdb 中配置 STL View ?

标签 c++ gdb

我在我的 $HOME 目录中创建了一个新文件 .gdbinit。当我执行 gdb 命令时出现以下错误。

bld05 abc /users/abc 25 > gdb
GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"./users/abc/.gdbinit:1: Error in sourced command file:
Undefined command: "TL".  Try "help".

我不知道哪里出了问题。谁能告诉我?

.gdbinit 文件包含 http://www.yolinux.com/TUTORIALS/src/dbinit_stl_views-1.03.txt

最佳答案

在 2012 年使用 gdb 6.3 没有多大意义(Mac 除外)。获得更新的东西,例如 7.5。这也将更好地与 C++ 一起工作。

此外,要在 gdb 中加载程序,请使用 gdb --args/your/binary arg1 arg2

关于c++ - 如何在 gdb 中配置 STL View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10816691/

相关文章:

c++ - 如何使用 libfacerec Opencv 库获得相似度百分比

c++ - 尽管存在上述文件,但无法打开包含文件

c++ - unreachable-code 在 C++11 中,这可能是什么原因造成的?

c++ - pthread 中的 undefined reference

c++ - 使用 gdb 进行调试 - (gdb) "x/s pointer"输出

c - Mingw - 从规范文件中删除选项

特定内存地址上的内容与 gdb 中的预期不同

c++ - 大型递归字符串操作的段错误

c - GDB一直崩溃

c++ - 将单词存储在字符串指针中