OPENRISC USB-DEBUGGER使用方法

利用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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值