- 论坛徽章:
- 0
|
[root@linserver mnt]# gdb hello 20422
GNU gdb 5.3
Copyright 2002 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 "i686-pc-linux-gnu"...
Attaching to program: /usr/local/sbin/hello, process 20422
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0xffffe002 in ?? ()
(gdb) where
#0 0xffffe002 in ?? ()
#1 0x08055eb0 in main (argc=2, argv=0x0) at hello.c:1211
#2 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
(gdb)
(gdb) n
Cannot find bounds of current function
这是什么原因 ? 在编译程序时已经加上-ggdb2 了 ,
在一台rh 8 上就没问题 :
gdb hello 1157
GNU gdb 5.3
Copyright 2002 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 "i586-pc-linux-gnu"...
Attaching to program: /usr/local/sbin/hello, process 1157
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0x401b8102 in accept () from /lib/libc.so.6
(gdb) where
#0 0x401b8102 in accept () from /lib/libc.so.6
#1 0x080576c7 in main_loop () at nessusd.c:697
#2 0x080581b8 in main (argc=2, argv=0x0) at hello.c:1211
#3 0x400ff4ce in __libc_start_main () from /lib/libc.so.6 |
|