|
[root@localhost main]# gcc -g -o print print.c
[root@localhost main]# gdb print
GNU gdb Red Hat Linux (6.0post-0.20040223.19rh)
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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) list
1 #include <stdio.h>
2 main()
3 {
4 int i;
5 printf("hello world");
6 }
(gdb) run
Starting program: /root/main/print
Error while mapping shared library sections:
: 成功.
Error while reading shared library symbols:
: 没有那个文件或目录.
Error while reading shared library symbols:
: 没有那个文件或目录.
Error while reading shared library symbols:
: 没有那个文件或目录.
hello world
Program exited with code 013.
(gdb) auto-solib-add 0
Undefined command: "auto-solib-add". Try "help".
(gdb) |
|