Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5164291
  • 博文数量: 671
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 7310
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-14 09:56
文章分类

全部博文(671)

文章存档

2011年(1)

2010年(2)

2009年(24)

2008年(271)

2007年(319)

2006年(54)

我的朋友

分类: C/C++

2008-06-23 15:21:56

用VMWare 和 KGDB 调试linux内核

由于我的机器没有串口,所以我直接装了两个虚拟的系统。
用一个虚拟的系统通过 vmware中的串口调试另外一个虚拟linux内核。
首先请阅读 "使用kgdb调试linux内核及内核模块", 我做的工作只是用vmware提供的虚拟串口设备把两给虚拟系统连接起来,具体调试环境的建立都在这篇参考文章里面介绍。
 
A. First setup kgdb debuging environment. For the detail please refer to "使用kgdb调试linux内核及内核模块".
 
B. Sencondly, you should configure vmware. This step's purpose is to make the two virtual system connected through vmware's serial port.
     1. Add a serial device for each virtual linux system.
     2. And select the "named pipe" in the serial devcie's configure page.
     Note: The pipe's name of two virtual machine must be same. And one is client end the other is server end.
 
C. Now you can use the kgdb to debug the target machine's kernel service.
    And there is a little difference when setting gdb debug param :  both side of the virtual serial connection the serial port device should be /dev/ttyS0.
阅读(1539) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~