LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 875|回复: 0

[求助]KGDB调试,无法正常连接symbol

[复制链接]
发表于 2008-2-18 15:37:20 | 显示全部楼层 |阅读模式
使用KGDBOE调试驱动,连接上target机后,设置断点能正常停下,但是bt看不到symbol,显示停在“sys_call_table () at include/linux/crypto.h:262”,有可能是什么原因啊?给出log信息是在load_module设置的断点,并且vmlinux是没有stripping的。是否是zImage本身无调试信息因此无法进行调试?那么一般情况下嵌入式linux的驱动如何开发调试?

望高手指点,先谢谢了。

log信息如下:

phil@phil2:~/WindRiver/workspace/wrlinux_prj/build/linux-2.6.14-small> gdb vmlinux
GNU gdb 6.4
Copyright 2005 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 "i586-suse-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) target remote udp:137.117.12.253:6443
warning: The remote protocol may be unreliable over UDP.
Some events may be lost, rendering further debugging impossible.
Remote debugging using udp:137.117.12.253:6443
0xc01daac0 in irq_stat ()
warning: shared library handler failed to enable breakpoint
(gdb) c
Continuing.
[New thread 32768]

Program received signal SIGTRAP, Trace/breakpoint trap.
0xc01daac0 in irq_stat ()
(gdb) bt
#0 0xc01daac0 in irq_stat ()
#1 0x00000001 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(gdb) c
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
0xc01daac0 in irq_stat ()
(gdb) b load_module
Breakpoint 1 at 0xc004e4cc: file kernel/module.c, line 1543.
(gdb) c
Continuing.
[New thread 694]

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to thread 694]
0xc001d248 in sys_call_table () at include/linux/crypto.h:262
262 {
……
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表