[zeuux-linux] Redhat redhat enterprise linux 3.0 kernel 2.4.21内核调试问题

Docoocoo docoocoo在gmail.com
星期四 七月 10 16:29:03 CST 2008


需要在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

不知道各位有什么解决办法没有,或是有什么其他好的方法没有。谢谢!!

附:参考资料
Linux 系统内核的调试 http://www.ibm.com/developerworks/cn/linux/l-kdb/
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: <http://www.zeuux.org/pipermail/zeuux-linux/attachments/20080710/64a4144d/attachment.html>


关于邮件列表 zeuux-linux 的更多信息