QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1615|回复: 4

skyeye 1.2的运行步骤是和以前的不太一样?怎么调试呢

[复制链接]
发表于 2007-1-17 02:00:59 | 显示全部楼层 |阅读模式
看了一下以前的帖子,说按下面的方法运行,还可以设断点
skyeye
target sim
run
可是我下的直接skyeye就运行了,没有skyeye的命令行了??
看了看手册,好像还没有更新呀,
skyeye -d -e hello
之后我用gdb ,target remote:12345
怎么调试呢?
是不是有不对的地方,
谢谢呀!
发表于 2007-1-17 19:32:14 | 显示全部楼层
http://skyeye.sourceforge.net/wiki/um5
回复

使用道具 举报

 楼主| 发表于 2007-1-17 22:58:38 | 显示全部楼层
老大,sourceforge上不去呀,海底光缆断了,
能不能劳驾帮我copy ,paste 一下,非常感谢
回复

使用道具 举报

发表于 2007-1-18 10:20:36 | 显示全部楼层
为什么海底光缆断了,我还能访问呢?

------------------------------------------
5. Debug

Now Skyeye supports the RDI (remote debug interface) protocol of GDB. In the future, we hope SkyEye can support more debugging protocols.


5.1 gdb debugging
In this section we will give some step by step instructions for debugging your kernel image using gdb RDI. RDI function in SkyEye is not completed yet, so you may encounter some problems. We will finish it soon.

Firstly you should have a gdb for your target installed on your host machine; there should be a binary called something like arm-elf-gdb. This gdb will be used to communicate with SkyEye to get detailed debug infomation. If you have ever used gdbserver, this will be familiar. SkyEye is just like your gdbserver in usage.

You can load your image on SkyEye with -d option to turn on debugging. Please refer to ?.

When Skyeye is launched, it will stop at the address of the first instruction of your image. Then run the gdb for your target in another terminal (using for instance X11 to open multiple terminal windows).

./arm-elf-gdb imagename

Then run the following command under gdb prompt:

target remote :12345

At this time, gdb side will show the current PC (program counter), and some running infomation of your image. Then you can run gdb commands to debug your image.

[quote:4d95005a0c="cornerstone"]老大,sourceforge上不去呀,海底光缆断了,
能不能劳驾帮我copy ,paste 一下,非常感谢[/quote]
回复

使用道具 举报

 楼主| 发表于 2007-1-20 12:13:53 | 显示全部楼层
Thanks!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 07:42 , Processed in 0.046058 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表