简体   繁体   English

如何在gdb中配置stl-view?

[英]how to configure stl-view in gdb?

I have created a new file .gdbinit on my $HOME directory. 我在$ HOME目录下创建了一个新文件.gdbinit。 and when I am execution gdb command I am getting following error. 当我执行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".

I don't know what could have gone wrong. 我不知道会出现什么问题。 Can anyone tell me? 有人能告诉我吗?

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

Using gdb 6.3 in 2012 does not make much sense (except on Macs). 在2012年使用gdb 6.3没有多大意义(Mac上除外)。 Get something newer, like 7.5. 获得更新的东西,比如7.5。 This will also work better with C++. 使用C ++也可以更好地工作。

Also, to load a program in gdb, use gdb --args /your/binary arg1 arg2 另外,要在gdb中加载程序,请使用gdb --args / your / binary arg1 arg2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM