LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4643|回复: 2

gdb greeting后,list命令后显示No symbol table is loaded. Use the "fil

[复制链接]
发表于 2005-11-7 22:54:34 | 显示全部楼层 |阅读模式
gdb greeting后,list命令后显示No symbol table is loaded.  Use the "file" command.
然后我又file greeting和run后,显示:
(gdb) file hello
Reading symbols from /root/code/hello...(no debugging symbols found)...done.
(gdb) run
Starting program: /root/code/hello
Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
Loaded system supplied DSO at 0xf4c000
(no debugging symbols found)
(no debugging symbols found)
hello!

我知道怎么解决?帮帮我
 楼主| 发表于 2005-11-7 23:27:12 | 显示全部楼层
不好意思
编译时候一定要:gcc -o filename -g filename.c
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-7 23:39:49 | 显示全部楼层
又有新问题料,无法执行next
(gdb) watch string2[size-i]
Hardware watchpoint 3: string2[size - i]
(gdb) next
warning: Could not remove hardware watchpoint 3.
Warning:
Could not insert hardware watchpoint 3.
Could not insert hardware breakpoints:
You may have requested too many hardware breakpoints/watchpoints.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表