当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 在使用anjuta调试程序时报错:无法访问内存
帖子发表于 : 2009-02-11 16:23 
头像

注册: 2009-02-04 12:43
帖子: 12
送出感谢: 0 次
接收感谢: 1
在使用anjuta调试程序时报错:无法访问内存,具体信息如下:
Copyright (C) 2008 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"...
(gdb)
-environment-cd /home/zhuhe/myprogram/c++/002/Debug
done
(gdb)
-inferior-tty-set /dev/pts/2
done
(gdb)
-exec-run
running
(gdb)
Stopped due to shared library event
*stopped,thread-id="0"
(gdb)
info program
Using the running image of child process 5889.
Program stopped at 0xb7fb63e0.
It stopped at breakpoint -3.
Type "info stack" or "info registers" for more information.
done
(gdb)
-data-list-register-values r
done,register-values=[{number="0",value="0x00000000"},{number="1",value="0xb7fc4654"},{number="2",value="0xb7fa80b4"},{number="3",value="0xb7fc3ff4"},{number="4",value="0xbfac4260"},{number="5",value="0xbfac4420"},{number="6",value="0xb7fc4668"},{number="7",value="0xb7fc4654"},{number="8",value="0xb7fb63e0"},{number="9",value="0x00000246"},{number="10",value="0x00000073"},{number="11",value="0x0000007b"},{number="12",value="0x0000007b"},{number="13",value="0x0000007b"},{number="14",value="0x00000000"},{number="15",value="0x00000000"},{number="16",value="0x00000000000000000000"},{number="17",value="0x00000000000000000000"},{number="18",value="0x00000000000000000000"},{number="19",value="0x00000000000000000000"},{number="20",value="0x00000000000000000000"},{number="21",value="0x00000000000000000000"},{number="22",value="0x00000000000000000000"},{number="23",value="0x00000000000000000000"},{number="24",value="0x0000037f"},{number="25",value="0x00000000"},{number="26",value="0x0000ffff"},{number="27",value="0x00000000"},{number="28",value="0x00000000"},{number="29",value="0x00000000"},{number="30",value="0x00000000"},{number="31",value="0x00000000"},{number="32",value="0x00000000000000000000000000000000"},{number="33",value="0x00000000000000000000000000000000"},{number="34",value="0x00000000000000000000000000000000"},{number="35",value="0x00000000000000000000000000000000"},{number="36",value="0x00000000000000000000000000000000"},{number="37",value="0x00000000000000000000000000000000"},{number="38",value="0x00000000000000000000000000000000"},{number="39",value="0x00000000000000000000000000000000"},{number="40",value="0x00001f80"},{number="41",value="0xffffffff"},{number="42",value="0x0000000000000000"},{number="43",value="0x0000000000000000"},{number="44",value="0x0000000000000000"},{number="45",value="0x0000000000000000"},{number="46",value="0x0000000000000000"},{number="47",value="0x0000000000000000"},{number="48",value="0x0000000000000000"},{number="49",value="0x0000000000000000"}]
(gdb)
-data-list-register-names
done,register-names=["eax","ecx","edx","ebx","esp","ebp","esi","edi","eip","eflags","cs","ss","ds","es","fs","gs","st0","st1","st2","st3","st4","st5","st6","st7","fctrl","fstat","ftag","fiseg","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2","xmm3","xmm4","xmm5","xmm6","xmm7","mxcsr","orig_eax","mm0","mm1","mm2","mm3","mm4","mm5","mm6","mm7"]
(gdb)
-data-disassemble -s 0x0 -e 0x101 -- 0
Cannot access memory at address 0x0
error,msg="Cannot access memory at address 0x0"
(gdb)
-data-disassemble -s 0x100 -e 0x201 -- 0
Cannot access memory at address 0x100
error,msg="Cannot access memory at address 0x100"
(gdb)
-data-read-memory 0x0 x 1 1 512
error,msg="Unable to read memory."
(gdb)
-exec-continue
running
(gdb)
Stopped due to shared library event
*stopped,thread-id="0"
(gdb)
-exec-continue
running
(gdb)
*stopped,reason="exited-normally"
(gdb)
-data-disassemble -s 0x200 -e 0x301 -- 0
Cannot access memory at address 0x200
error,msg="Cannot access memory at address 0x200
(gdb)
请教大家,如何设置不出现错误!谢谢!


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译