LinuxSir.cn,穿越时空的Linuxsir!

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

gdb: Failed to read a valid object file image from memory.

[复制链接]
发表于 2007-1-13 10:10:39 | 显示全部楼层 |阅读模式
这是gdb的输出:
  1. (gdb) break 7
  2. Breakpoint 1 at 0x8048365: file main.c, line 7.
  3. (gdb) run
  4. Starting program: /home/cct/Projects/test/src/a.out
  5. Failed to read a valid object file image from memory.

  6. Breakpoint 1, main () at main.c:7
  7. 7               printf("Hello world\n");
  8. (gdb) s
  9. Hello world
  10. 8               return (0);
复制代码


看来gdb是能用的, 但在anjuta里调试就会弹出一个error对话框, 显示的信息就是上面那个 Failed to read a valid object file image from memory.

有人知道这个valid object file image是什么东西吗?
我用的arch的current源
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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