GDB的调试问题大侠来下阿
gdb下的一些功能有时候有有时候没有到底怎么回事呢?比如:
[Magic@localhost luanma]$ gdb w
GNU gdb Fedora (6.8-1.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...
(no debugging symbols found)
(gdb) break main
Breakpoint 1 at 0x8048462
(gdb) run
Starting program: /home/luanma/w
(no debugging symbols found)/////////有时候有有时候没有的
(no debugging symbols found)
(no debugging symbols found)
Breakpoint 1, 0x08048462 in main ()
Missing separate debuginfos, use: debuginfo-install glibc.i686
(gdb) list
No symbol table is loaded. Use the "file" command.有时候可以用的有时候不能用就这样
(gdb) break w.c:5
No symbol table is loaded. Use the "file" command.
(gdb)
有时候确又是好的怎么办?