[zeuux-linux] Redhat redhat enterprise linux 3.0 kernel 2.4.21内核调试问题
WANG Cong
xiyou.wangcong在gmail.com
星期四 七月 10 16:53:01 CST 2008
On Thu, Jul 10, 2008 at 04:29:03PM +0800, Docoocoo wrote:
>需要在redhat enterprise linux 3.0 kernel 2.4.21环境下做一个可加载模块的调试:
>1:采用的方法是用两个VMware虚拟机通过映射的命名管道 \\.\pipe\com_1相连
>2:下载安装了kgdb的补丁文件"Patch for redhat enterprise linux 3.0 kernel 2.4.21-pre1:
>linux-2.4.21-pre1-kgdb-1.6.patch"<http://kgdb.linsyssoft.com/downloads/linux-2.4.21-pre1-kgdb-1.6.patch>
>
>3:也进行了如下设置
> [*] KGDB: kernel debugging with remote gdb
> [*] KGDB: Thread analysis
> [*] KGDB: Console messages through gdb
>
>但是在编译内核的时候报如下错误:
>> arch/i386/kernel/kernel.o(.text+0x1031d): In function `handle_exception':
>> /usr/src/linux-2.4.21-4.EL/arch/i386/kernel/gdbstub.c:960: undefined
>reference to `rwlock_is_locked'
>> make[1]: *** [kallsyms] Error 1
>> make[1]: Leaving directory '/usr/src/linux-2.4.21-4.EL'
>> make: *** [vmlinux] Error 2
>
>不知道各位有什么解决办法没有,或是有什么其他好的方法没有。谢谢!!
2.4.*是很老的内核。:-)
这似乎是kgdb补丁的错误,而且像是缺了某个头文件,你试试自己修复一下。
不行的话升级你的内核吧。
--
Hi, I'm a .signature virus, please copy/paste me to help me spread
all over the world.
关于邮件列表 zeuux-linux 的更多信息