linux gdb 没有符号表被读取。请使用 "file" 命令。

codingwangfeng 2010-07-18 02:29:43
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 <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 "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /mnt/hgfs/robot/testArea/GdbTest...(no debugging symbols found)...done.
(gdb) l

(gdb)file test

为什么会出现这个“没有符号表被读取。请使用 "file" 命令。“?

ps
linxu有啥好用的调试工具没有?
...全文
1461 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
moxiaomomo 2011-09-07
  • 打赏
  • 举报
回复
为什么用了g++ -g来编译后也不行的呢?
bladechen 2011-07-09
  • 打赏
  • 举报
回复
kankan
wyfwx1213 2010-07-19
  • 打赏
  • 举报
回复
楼上正解
谭海燕 2010-07-18
  • 打赏
  • 举报
回复
很明显,gcc的时候没有 -g 参数
FancyMouse 2010-07-18
  • 打赏
  • 举报
回复
...(no debugging symbols found)...

确定带-g编译了么
masmaster 2010-07-18
  • 打赏
  • 举报
回复
test是shell的内建命令, 起个别的名字试一试呢?

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧