- 论坛徽章:
- 0
|
本帖最后由 faxiang1230 于 2014-08-09 13:36 编辑
刚才在参考这篇博文时,理解的GDB能够启动的顺序:
1.将.bin文件下载到板子上
2.执行gdbserver和初始化脚本
3.调用.elf格式的文件用于调试
猜测:1.bin文件执行错误,在执行第二步时出现错误
猜测验证:阅读GDB Server Guide,修改初始化脚本- target remote 127.0.0.1:2331 //target remote 127.0.0.1:3333
复制代码 打印信息如下:- source F:\Program Files\eclipse\Copy of led\S3C6410.init
- 0x00000000 in ?? ()
- F:\Program Files\eclipse\Copy of led\S3C6410.init:3: Error in sourced command file:
- Target does not support this command.
- load
- Loading section .text, size 0x184c lma 0xc0000000
- Loading section .rodata, size 0x70 lma 0xc000184c
- Loading section .data, size 0x900 lma 0xc00018bc
- Start address 0xc0000000, load size 8636
- Transfer rate: 2 KB/sec, 2878 bytes/write.
- break _start
- Cannot access memory at address 0xc0000004
- c
复制代码 从上面的log中可以看到失败原因最大可能是.bin文件和.lds中配置不合理。
...继续修改中
博文链接:http://blog.163.com/nesnil@126/b ... 982012223104416462/
也感谢关注该问题的同学 |
|