OPENRISC USB-DEBUGGER使用方法

来源:互联网 发布:文献关键词分析软件 编辑:程序博客网 时间:2024/05/17 04:33
利用openrisc提供的镜像在虚拟机上调试,调试的步骤如下:
1.type:
   $ /opt/or_debug_proxy/bin/or_debug_proxy -r 55555


2.type:
   $ cd ~/soc-design/helloworld-or1ksim
   $ or32-elf-gdb
   
3.The GDB debugger is now started and you need to connect it to
   the or_debug_proxy program, by typing:
   (gdb) target remote :55555


4.type:
   (gdb) any gdb commands
主要用到的命令有:
info spr sys --打印出所有系统相关的特殊寄存器
info all-registers --打印出所有通用寄存器
br *0xd9cc --在0xd9cc处设置断点
del 0xd9cc --删除断点
c --即continue,放开openrisc cpu
Ctrl-c --把cpu停住,交给gdb控制
info br --查看断点设置情况
更多的命令参考openrisc官网
0 0
原创粉丝点击