如何在 GDB 中配置 STL-View
how to configure stl-view in 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
相关文章:
- 为不同配置设置MSVC_RUNTIME_LIBRARY的正确方法是什么
- 在C++STL中是否有Polyval(Matlab函数)等价物?
- 为什么这个运算符<重载函数对 STL 算法不可见?
- 无法找到/读取配置文件.conf-FileIOException
- 在C应用程序中运行C++(带有STL)函数
- 使用2个键的cpp-stl::优先级队列排序不正确
- 在WSL:configure_file上对config_file的每次调用都失败:配置文件时出现问题
- 一种在C++中读取TXT配置文件的简单方法
- 生成MRPT库时cmake配置失败
- 在STL容器中使用模板类
- FFMPEG配置文件级别id大小无效
- 用C++中的CPerson(类)类型的对象初始化STL矢量
- 如何通过Conan和CMake找到用于pkg配置的.pc文件
- 将stl字符串缩小到小于15个字符的容量
- 在为LINUX创建共享库时,如何避免STL的私有/弱副本
- 检查函数返回类型是否与STL容器类型值相同
- STL算法函数在多个一维容器上的使用
- 在STL - C++中按成绩对学生列表进行排序?
- 配置文件解析器仅返回以前的值
- 如何在 GDB 中配置 STL-View