Chinaunix

标题: [求助]KGDB调试,无法正常连接symbol [打印本页]

作者: recho    时间: 2008-02-14 10:31
标题: [求助]KGDB调试,无法正常连接symbol
使用KGDBOE调试驱动,连接上target机后,设置断点能正常停下,但是bt看不到symbol,显示停在“sys_call_table () at include/linux/crypto.h:262”,有可能是什么原因啊?在load_module设置的断点,并且vmlinux是没有stripping的。望高手指点,先谢谢了。

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 {
……




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2