- 论坛徽章:
- 0
|
原帖由 EurekaSea 于 2008-11-17 18:22 发表 ![]()
大家好,首次发帖。希望能够得到大家的帮助。
最近在尝试在x86平台上用kgdb调试kernel,2.6.26已经自带kgdb,我已经编译成功安装。host也能够连接上target,但是gdb总是不能在设置的断点处正确停止。
先简单说 ...
[root@CoolB3 linux-2.6.26]# 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 "i686-pc-linux-gnu"...
Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb)
(gdb)
(gdb)
(gdb) set remotebaud 115200
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
kgdb_breakpoint () at kernel/kgdb.c:1674
1674 wmb(); /* Sync point after breakpoint */
warning: shared library handler failed to enable breakpoint
(gdb) b bus_register
Breakpoint 1 at 0xc0212e28: file slub_def.h, line 223.
(gdb) c
Continuing.
[New thread 1]
Breakpoint 1, bus_register (bus=0xc032b00c) at slub_def.h:223
223 return kmem_cache_alloc(s, flags);
(gdb)
总算在 2.6.26上搞成功了,大概问题找到了,好象是环境,跟配置的问题,不过还不确定. 把你那个.config传上来看下.
接下来继续搞 2.6.27.6
EurekaSea. 你那边进度怎么样了,有什么能分享的吗?
[ 本帖最后由 Aqie 于 2008-11-19 22:01 编辑 ] |
|