|
发表于 2005-2-20 22:57:03
|
显示全部楼层
[quote:57472e9477="walimis"]内核没有main函数。
你可以通过skyeye的信息察看启动的首地址。然后用"b *<首地址>"设置断点。然后可以用si单步运行。另外。b start_kernel也是一种方法。[/quote]
这个?"b *<首地址>"怎么不好用啊?是偶的使用方法错了吗?本人新手,望大家给偶指点~
(SkyEye) load
Loading section .init, size 0xa000 vma 0x1000000
Loading section .text, size 0xc5c60 vma 0x100a000
Loading section .data, size 0x8320 vma 0x10d0000
Start address 0x1000000
Transfer rate: 7076864 bits/sec.
(SkyEye) b *<0x1000000>
A parse error in expression, near `<0x1000000>'.
(SkyEye) "b *<0x1000000>"
Undefined command: "". Try "help".
(SkyEye) b *<0x10d0000>
A parse error in expression, near `<0x10d0000>'.
(SkyEye) b start_kernel
Breakpoint 1 at 0x1000570: file init/main.c, line 363.
(SkyEye) b *<0x10d8321>
A parse error in expression, near `<0x10d8321>'.
(SkyEye) b *<0x10e0000>
A parse error in expression, near `<0x10e0000>' |
|