怎么用GDB调试LINUX内核(软件仿真)
[root@localhost linux-2.6.11.8]# arm-uclinux-gdb vmlinux
GNU gdb 6.1
Copyright 2004 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=arm-uclinux"...
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .init, size 0x17000 vma 0xc008000
Loading section .text, size 0x1f06b8 vma 0xc01f000
Loading section __ex_table, size 0x9b8 vma 0xc20f6c0
Loading section __ksymtab, size 0x3c20 vma 0xc210078
Loading section __ksymtab_gpl, size 0x610 vma 0xc213c98
Loading section __kcrctab, size 0x1e04 vma 0xc2142a8
Loading section __kcrctab_gpl, size 0x308 vma 0xc2160ac
Loading section __ksymtab_strings, size 0x937c vma 0xc2163b4
Loading section __param, size 0x2bc vma 0xc21f730
Loading section .data, size 0x4b350 vma 0xc220000
Start address 0xc008000
Transfer rate: 20015520 bits/sec.
(gdb) c
Continuing.
The program is not being run.
(gdb)
The program is not being run.
怎么才能单步运行呢?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1,参考你仿真环境的手册
2,猜测应该是 b main
然后list 再运行