当前位置: 技术问答>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 参数
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。