|
|

楼主 |
发表于 2005-12-10 19:04:01
|
显示全部楼层
[root@DYS tmp]# gdb
GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
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".
(gdb) file test
Reading symbols from /root/myc/tmp/test...(no debugging symbols found)...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r
Starting program: /root/myc/tmp/test
Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0x4d9000
(no debugging symbols found)
(no debugging symbols found)
The string is hello there
The string printed backward is
Program exited with code 040.
(gdb) l
No symbol table is loaded. Use the "file" command.
(gdb) list
No symbol table is loaded. Use the "file" command.
(gdb) |
|