当前位置: 技术问答>linux和unix
gdb工具中list选项不能成功使用
来源: 互联网 发布时间:2016-05-24
本文导语: 哪位知道下面的情况是什么原因呢? [root@localhost /root]$gdb GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to ...
哪位知道下面的情况是什么原因呢?
[root@localhost /root]$gdb
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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 "i386-redhat-linux-gnu".
(gdb) file hello
Reading symbols from hello...done.
(gdb) run
Starting program: /root/hello
hello world
Program exited normally.
(gdb) list
1 ../sysdeps/i386/elf/start.S: 没有那个文件或目录.
in ../sysdeps/i386/elf/start.S
(gdb)
不知道为什么不能成功,其他的选线是能成功的
[root@localhost /root]$gdb
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
Copyright 2003 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 "i386-redhat-linux-gnu".
(gdb) file hello
Reading symbols from hello...done.
(gdb) run
Starting program: /root/hello
hello world
Program exited normally.
(gdb) list
1 ../sysdeps/i386/elf/start.S: 没有那个文件或目录.
in ../sysdeps/i386/elf/start.S
(gdb)
不知道为什么不能成功,其他的选线是能成功的
|
请先list
再break
然后再run
再break
然后再run
|
up下