循环运行 elf 文件直到遇到断点

问题描述

在 TRACE32 PowerView 中,我运行了一个 go.cmm 脚本来设置和运行一个 elf 文件: [B::] 去 test.elf

go.cmm 可以:

...
Data.LOAD.ELF &filename
...
Go

我希望程序 (test.elf) 一次又一次地运行,直到遇到断点。

...
Break _main
Go
; Set up breakpoint manually
; Here I press <F7> Run
WHILE TRUE()
(
  ; Let test.elf finish running
  ; below code does not work
  ; - state.run() seems to be true because of Go command
  ;   so WHILE does not make the script wait for test.elf to finish running
  WHILE state.run()
  (
    wait 1000.ms
  )
  ; Setup for next run
  system.mode.up
  system.up
  ; Run again - Go is probably not the right command
  Go
)

非常感谢您的帮助。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)