Chinaunix首页 | 论坛 | 博客
  • 博客访问: 841246
  • 博文数量: 150
  • 博客积分: 5123
  • 博客等级: 大校
  • 技术积分: 1478
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-06 10:03
文章分类

全部博文(150)

文章存档

2011年(2)

2010年(139)

2009年(9)

分类:

2009-02-09 17:44:59

我的主机是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”,升级后,这个问题决。
阅读(1857) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~