LinuxSir.cn,穿越时空的Linuxsir!

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

what's wrong gdb in suse 8.2

[复制链接]
发表于 2003-6-27 09:30:16 | 显示全部楼层 |阅读模式
when I set breakpoint and run, gdb error as following:
   Cannot insert breakpoint -2.
   Error accessing memory address 0x4000bb50: Input/output error.
   The same program may be running in another process.
why?
发表于 2003-6-27 10:29:24 | 显示全部楼层
You have another copy of your program running in your Linux.
Or you didn't compile your program with -g option.
Or you set the breakpoint at a wrong place.
 楼主| 发表于 2003-6-27 14:43:39 | 显示全部楼层

When I link with static, gdb works whell, why?

thanks!
发表于 2003-6-27 15:26:22 | 显示全部楼层
Because you link a share library, and one of your share library may be currently used by another program. So gdb will report you that "The same program may be running in another process."
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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