在VMware中用Kgdb调试linux内核和Cannot insert breakpoint Error accessing memory address的解决方法
2010-11-03 16:59
459 查看
在VMware中用Kgdb调试linux内核参考:
http://blog.csdn.net/jie12310/archive/2009/09/18/4564853.aspx
设置断点后可能出现如下错误:
Cannot insert breakpoint 4.
Error accessing memory address 0xd0ce8000: 未知的错误 4294967295
原因:
内核编译选项CONFIG_DEBUG_RODATA,会对kernel text做write protect。 那么kgdb就不能设置断点了。
解决方法是:
编辑kernel source目录下生成的.config文件, 禁用CONFIG_DEBUG_RODATA=n (read only data)即可。
参考:
http://comments.gmane.org/gmane.linux.kernel.debugging.kgdb.bugs/4772
http://zh-kernel.org/pipermail/linux-kernel/2008-September/006875.html
http://blog.csdn.net/chaolumon/archive/2009/10/28/4736546.aspx
Powered by Zoundry Raven
http://blog.csdn.net/jie12310/archive/2009/09/18/4564853.aspx
设置断点后可能出现如下错误:
Cannot insert breakpoint 4.
Error accessing memory address 0xd0ce8000: 未知的错误 4294967295
原因:
内核编译选项CONFIG_DEBUG_RODATA,会对kernel text做write protect。 那么kgdb就不能设置断点了。
解决方法是:
编辑kernel source目录下生成的.config文件, 禁用CONFIG_DEBUG_RODATA=n (read only data)即可。
参考:
http://comments.gmane.org/gmane.linux.kernel.debugging.kgdb.bugs/4772
http://zh-kernel.org/pipermail/linux-kernel/2008-September/006875.html
http://blog.csdn.net/chaolumon/archive/2009/10/28/4736546.aspx
Powered by Zoundry Raven
相关文章推荐
- Keil MDK调试时提示ERROR 57: illegal address的解决方法
- [转载]java.lang.OutOfMemoryError: PermGen space及其解决方法
- java.lang.OutOfMemoryError: Java heap space解决方法
- Ckeditor: Uncaught TypeError: Cannot read property 'keyCode' of undefined 解决方法
- java.lang.OutOfMemoryError: bitmap size exceeds VM budget解决方法
- vs2005部署错误解决方法:ASPNETMERGE : error 1013: Cannot find any assemblies that can be merged in the application bin folder.
- 内存泄露java.lang.OutOfMemoryError: PermGen space解决方法
- java.lang.OutOfMemoryError异常解决方法
- java.lang.OutOfMemoryError: PermGen space及其解决方法
- java.lang.OutOfMemoryError: PermGen space及其解决方法
- Tomcat8 Caused by: java.lang.OutOfMemoryError: PermGen space错误解决方法
- java.lang.OutOfMemoryError: Java heap space解决方法
- ./configure时,error: cannot find install-sh, install.sh, or shtool解决方法
- linux下执行 ls,cat等一些命令报出 -bash: /bin/cat: Cannot allocate memory 有没解决的方法
- java.lang.OutOfMemoryError: PermGen space及其解决方法
- java.lang.OutOfMemoryError: Java heap space解决方法
- Apache解决error setting limit (Operation not permitted)及could not bind to address 0.0.0.0:80 的方法
- java.lang.OutOfMemoryError: PermGen space及其解决方法(转)
- java.lang.OutOfMemoryError解决方法
- java.lang.OutOfMemoryError: PermGen space及其解决方法