virtualbox(linux host) 调试linux guest 内核
来源:互联网 发布:amd优化的游戏有哪些 编辑:程序博客网 时间:2024/05/29 11:09
windows host的vbox 串口可以选择namepipe,linux host同样可以选择这个配置。
在串口配置中选择host pipe,名称选择/tmp/vbox (这是local socket),选择为server(自动创建pipe文件)。
guest启动之后/tmp/vbox就建立起来了。
使用socat可以检查是否成功连接。
socat -d -d /home/fotisl/virtualbox/myvm/serial1 pty (这里一定要是-d -d)
2009/01/01 00:00:00 socat[12345] N opening connection to AF=1 "/home/fotisl/virtualbox/myvm/serial1"2009/01/01 00:00:00 socat[12345] N successfully connected from local address AF=1 "/x04/b/xAB"
2009/01/01 00:00:00 socat[12345] N successfully connected via /xD0/xA7/x10
2009/01/01 00:00:00 socat[12345] N PTY is /dev/pts/4
2009/01/01 00:00:00 socat[12345] N starting data transfer loop with FDs [3,3] and [4,4]
红字部分就是连接的目标
新开一个窗口打开gdb
gdb ~/vmlinuxGNU gdb (GDB) 6.8.50.20090628-cvs-debian
Copyright (C) 2009 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 "i486-linux-gnu". For bug reporting instructions, please see:
(gdb) set remotebaud 115200
(gdb) target remote /dev/pts/4
Remote debugging using /dev/pts/4
guest linux一定要编译了KGDB
同时设置
# echo ttyS0,115200 > /sys/module/kgdboc/parameters/kgdboc
用# echo g > /proc/sysrq-trigger 出发调试
如果是需要启动时调试,则增加boot参数。
kgdboc=ttyS0,115200 kgdbwait
- virtualbox(linux host) 调试linux guest 内核
- VirtualBox下Linux为Host,Windows为Guest通信
- 转:VirtualBox Linux Guest host CPU占用高问题解决!
- virtualbox+kgdbt调试linux内核
- Windows host与VirtualBox中linux guest通过数据空间共享文件
- XP(host)与virtualbox中的Fedora 14(guest)Linux共享文件方法
- VirtualBox:Host OS Linux and Guest OS Windows XP Shared Folders Setting
- virtualbox网络配置和调试linux内核
- Virtualbox – Host guest communication.
- VMWare windowsXP host + linux guest 网络配置
- VirtualBox增大硬盘容量(guest为Linux)
- VirtualBox增大硬盘容量(guest为Linux)
- virtualBox guest与host共享文件
- VirtualBox cannot ping Windows7 (host), Ubuntu (guest)
- VirtualBox NAT 模式下host访问guest
- vmware 配置实例-linux host + windows guest + firewall
- 转载:vmware 配置实例-linux host + windows guest + firewall
- vmware 网络配置实例二 windows host + linux guest
- 图像缩放的双线性内插值算法的原理解析
- 常用图像插值算法分析与比较
- 医学图像可视化自动编程平台的设计
- 今天真晕呀
- 亲爱的爸爸妈妈,你们一定要好好的呀
- virtualbox(linux host) 调试linux guest 内核
- 《ASCE1885的IT笔试面试题》---0000 0005
- Silverlight案例之卷轴动画和Tag树
- C/C++笔试题
- 安装wordpress之激活mod_rewrite
- 关于mc1000的开发
- 换内存
- C#.net打包时自定义应用程序的快捷方式与卸载
- SQL函数大全