skyeye gdb单步调试问题
请问如何用gdb远程调试skyeye中的linux内核我的linux内核是按这个贴子编出来的"成功编译2_6_14 并在skyeye1_2_4上运行的步骤--并成功 mount nfs - Skyeye项目专栏 - 中国Linux公社论坛"
然后用skyeye -e vmlinux -d
运行内核。
再开一个终端
localhost linux-2.6.14]$ gdb
GNU gdb Red Hat Linux (6.6-35.fc8rh)
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 "i386-redhat-linux-gnu".
(gdb) target remote:12345
Remote debugging using :12345
0x00000000 in ?? ()
(gdb)
这时如果输入c可以正常运行起来。像这样
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0xc0ffd7d4 in ?? ()
(gdb)
但是我要怎么单步运行呢?怎么看运行到哪里了呢?
输入s,si好像都不行,如下:
(gdb) s
Cannot find bounds of current function
(gdb) si
0xc0ffd7d4 in ?? ()
(gdb) si
0xc0ffd7d4 in ?? ()
(gdb) si
0xc0ffd7d4 in ?? ()
(gdb) 各位老大,指点一下吧 http://www.linuxfans.org/bbs/thread-181087-1-1.html 非常感谢ksh
页:
[1]