易截截图软件、单文件、免安装、纯绿色、仅160KB

利用KGDB调试Linux kernel




创建时间:2010-01-27
作者:Steven Yang
E-mail:mqyoung@gmail.com
为了高效的对kernel进行调试,作者在实验室利用已有的资源进行环境配置。首先是硬件环境,我有两个PC,
一个是P III,Debian(Target)
一个是AMD 64,Ubuntu(Developer)
要通过Developer调试Target,这就需要给Target重编内核,并进行串口调试相关设置,而Developer需要装一个32位的虚拟机用作调试。如下为详细的配置过程。
1 KGDB Introduction
KGDB is a debugger for the Linux kernel. It requires two machines
that are connected via a serial connection. The serial connection may
either be an RS-232 interface using a null modem cable, or via the
UDP/IP networking protocol (KGDB over Ethernet, KGDBoE).
KGDB was originally implemented as a patch to Linux kernel, but it has
been included in the official kernel in 2.6.26. The target machine (the
one being debugged) runs the patched kernel and the other (host)
machine runs gdb. The GDB remote protocol is used between the two
machines.
KGDB is available for the following architectures: x86, x86-64, PowerPC, ARM, MIPS, and S390.
It is free software released under the terms of the GNU General Public
License. Until 2006 kgdb was maintained by Linsyssoft Technologies.,
after which Jason Wessel at Wind River Systems, Inc. took over as the
official maintainer.
Ingo Molnar and Jason Wessel created a slimmed-down and cleaned up
version of KGDB which was called "kgdb light" (without Ethernet support
and many other hacks). This was the one merged into the 2.6.26
kernel.[1] The version of kgdb in the 2.6.26 kernel supports only rs232
using a driver which can split debugger inputs and console inputs such
that only a single rs232 port is required.
Jason Wessel created a kgdb test suite which was merged into the 2.6.26
kernel in order to regression test the kgdb core as well as to aid in
the validation of future architecture support for kgdb.
from: http://en.wikipedia.org/wiki/KGDB
Refer: http://kgdb.linsyssoft.co


相关文档:

Linux字符集的修改方法

用export LANG=zh_CN.UTF-8这样只下次重起又要重设置
修改 /etc/sysconfig/i18n 文件,如
LANG="en_US",xwindow会显示英文界面,
LANG="zh_CN.GB18030",xwindow会显示中文界面。
编辑/etc/sysconfig/i18n这个文件,
LANG="zh_CN.UTF-8"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh"
SYSFONT="latarcyrheb-sun16"
或者
LA ......

linux 下DNS服务器的安装和配置

安装篇
首先获取以下三个安装包 (安装不成功有提示 ,就是bind-libs-9.2.4-16.EL4被bind-9.2.4-16.EL4依赖)
bind-libs-9.2.4-16.EL4.rpm
bind-9.2.4-16.EL4.rpm
bind-devel-9.2.4-16.EL4.rpm
安装完成通过命令查看
rpm -qa|grep bind
结果如下所示就安装成功!
bind-libs-9.2.4-16.EL4
bind-9.2.4-16.EL4
bind- ......

取消Linux下Vim自动生成~备份文件

1. 进入到vim的安装目录,一般为 /usr/share/vim/vim70/
, 或类似 /usr/share/vim/vim??
/;
2. 如果有 .vimrc.vim
文件,查找到该文件中的如下内容:
if has("vms")
set
nobackup " do not keep a backup file, use versions instead
else
 set
backup " keep a backup f ......

arch linux 更新源

http://mirrors.163.com/archlinux/ (网易,公网测试中)
http://mirror.lupaworld.com/archlinux/(LUPA,推荐公网用户使用)
ftp://public.gooth.cn/archlinux/ (Gooth,电信、教育网)
rsync://public.gooth.cn/archlinux/ (Gooth,电信、教育网)
ftp://xde.gooth.cn/archlinux/ (Gooth,网通)
http://ft ......

Linux下的命名规则

Linux下建议的命名规则如下。
(1)变量名必须有一定的意义,并且意义准确。例如有一个变量用于保存图书的数目,可以命名为number_of_book或者num_of_book。不建议使用i,因为它没有意义。也不建议使用number或book,因为意义不准确。
(2)不建议大小写混用。如定义一个计数变量,int nCount;这在Windows中是一个很好 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号