当前位置: 技术问答>linux和unix
linux gdb 没有符号表被读取。请使用 "file" 命令。
来源: 互联网 发布时间:2016-12-29
本文导语: gcc 编译通过的可执行文件test,然后gdb test GNU gdb (GDB) 7.1-ubuntu Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is...
gcc 编译通过的可执行文件test,然后gdb test
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /mnt/hgfs/robot/testArea/GdbTest...(no debugging symbols found)...done.
(gdb) l
(gdb)file test
为什么会出现这个“没有符号表被读取。请使用 "file" 命令。“?
ps
linxu有啥好用的调试工具没有?
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
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 "i486-linux-gnu".
For bug reporting instructions, please see:
...
Reading symbols from /mnt/hgfs/robot/testArea/GdbTest...(no debugging symbols found)...done.
(gdb) l
(gdb)file test
为什么会出现这个“没有符号表被读取。请使用 "file" 命令。“?
ps
linxu有啥好用的调试工具没有?
|
...(no debugging symbols found)...
确定带-g编译了么
确定带-g编译了么
|
很明显,gcc的时候没有 -g 参数