我的主机是Windowxp,虚拟机装的是Linux,当我把虚拟机升级到2.1.2后,gdb调试程序是出错:
root [ /src/bdrr/user ]# gdb bdrradm
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
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 "i686-pc-linux-gnu"...
(gdb) b 92
Breakpoint 1 at 0x80488a9: file bdrradm.c, line 92.
(gdb) run
Starting program: /src/mytest
Couldn't write registers: Input/output error.
后来在互联网上查询,原来是一个bug,解决方法是,在虚拟机中打开VT-x(CPU虚拟化)功能:
虚拟机中->设置->常规->高级中,把VT-x/AMD-V选上。同时还需要在bios中打开电脑的VT-x功能,我的笔记本电脑是Dell D630,bios版本是A13,与Dell支持人员关系,需要升级bios以支持Vt-x功能,从Dell网站上下载A15的Bios文件“D630_A15.EXE”,升级后,这个问题决。
阅读(1951) | 评论(0) | 转发(0) |