使用gdb时 no executable specified,use`target exec'是什么原因啊?

andyleeforever 2007-03-06 01:36:47
(gdb)run proj test.txt
Starting program: proj06 test.txt
no executable specified,use`target exec'

使用gdb时出现这个什么原因阿?
...全文
1030 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
andyleeforever 2007-03-06
  • 打赏
  • 举报
回复
是用gcc编译的

如果用insight proj06.exe,如何调入test.txt啊?

初学者,不怎么会用,调不进去test.txt。
abacan 2007-03-06
  • 打赏
  • 举报
回复
我的意思是如果你是用gcc编译了话
growup 2007-03-06
  • 打赏
  • 举报
回复

gdb proj
(gdb) run test.txt

or

gdb
(gdb) file proj
(gdb) run test.txt
abacan 2007-03-06
  • 打赏
  • 举报
回复
编译时使用-g选项,生成可调试的文件就好了。

23,116

社区成员

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

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