Chinaunix首页 | 论坛 | 博客
  • 博客访问: 86354
  • 博文数量: 0
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2007-06-03 00:04
我的朋友
     该分类下暂时没有公开的博文,给他留言提醒一下吧。
给主人留下些什么吧!~~

officece2007-10-18 10:25

ello 看了你的博,这些文章很不错....... 这篇文章和我最近遇到的问题很类似...我把我的问题贴给你,请你帮我一起分析下吧 我是用kgdb调试ppc板子上的kernel target上 #cd /lib/modules/ #ls kgdboe.ko pktgen.ko pmemfs.ko rmfs.ko ltt-control.ko pmem_test_module.ko probe.ko watchdog.ko #insmod /lib/modules/kgdboe.ko kgdboe=@10.9.128.132/eth1,@10.9.128.23/00:18:8B:00:95:B9 # host 上: # /tmp/g/bin/powerpc-wrs-linux-gnu-gdb ./vmlinux GNU gdb 6.5 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-wrs-linux-gnu"... (gdb) target remote udp:10.9.128.132:6443 warning: The remote protocol may be unreliable over UDP. Some events may be lost, rendering further debugging impossible. Remote debugging using udp:10.9.128.132:6443 0x00000000 in ?? () (gdb) bt #0 0x00000000 in ?? () #1 0xc002e634 in tasklet_action (a=0x0) at include/linux/ltt/ltt-facility-kernel.h:722 #2 0xc002ceb0 in __do_softirq () at include/linux/ltt-core.h:50 #3 0xc002e1c8 in tasklet_action (a=0x0) at kernel/softirq.c:286 #4 0xc002e2b8 in tasklet_action (a=0x0) at include/linux/ltt-core.h:465 #5 0xc00051a0 in do_IRQ (regs=0xc02c0000) at arch/ppc/kernel/irq.c:173 #6 0xc0002824 in ret_from_except_full () #7 0xc00051c4 in default_idle () at arch/ppc/kernel/idle.c:39 #8 0xc000523c in cpu_idle () at arch/ppc/kernel/idle.c:70 #9 0xc0001514 in rest_init () at init/main.c:423 #10 0xc02a2698 in setup_arch (cmdline_p=0xc02c0000) at arch/ppc/kernel/setup.c:757 #11 0xc0000370 in skpinv () at arch/ppc/kernel/head_fsl_booke.S:367 Previous frame inner to this frame (corrupt stack?) (gdb) b default_idle Breakpoint 1 at 0xc00051c0: file arch/ppc/kernel/idle.c, line 39. (gdb) b __do_softirq Breakpoint 2 at 0xc002c934: file kernel/softirq.c, line 76. (gdb) c Continuing. [New thread 614] Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to thread 614] 0x00000000 in ?? () (gdb) c Continuing. Ignoring packet error, continuing... Ignoring packet error, continuing... Remote communication error: Connection refused. 我有几个疑惑: 1.在Ignoring packet error, continuing...显示这部分的时候,我通过minicom可以看见板子已经因为watchdog的原因重启了....... 2.上面Program received signal SIGTRAP, Trace/breakpoint trap的提示是正常的提示么?我看见你调试arm板上也有这样的提示.... 3.[Switching to thread 614] 0x00000000 in ?? ().到这里,我调试的时候显示的是这些,但是我看见你的能显示在某处断点,例如你的显示是 Program received signal SIGTRAP, Trace/breakpoint trap. 0x2001dc08 in ?? () at proc_fs.h:194 你说你遇到了一些问题,有解决么?具体是什么问题呢?能给我说说么? 这些问题block我很久了,因为领导让我测试使用kgdb,我对内核却又没有接触过,头疼ing......看见你的这个文章,感觉眼前一亮,希望能和你探讨一下,谢谢了 如果可以的话,我们可以邮件联系: 我的邮箱: officece@163.com

回复  |  举报

chinaunix网友2007-10-03 18:11

大哥用wmware搭建内核调试平台中的文件系统的加载解决办法可不可以详细一点啊???????

回复 |  删除 |  举报
留言热议
请登录后留言。

登录 注册