Check in Trace 32 on which CPU breakpoint stopped

天涯浪子 提交于 2019-12-08 13:23:30

问题


Does anyone knows if that is possible to check ID of CPU on which I reached breakpoint?

I want to print it out and resume execution immediately, so likely need a t32 cmd or global variable.


回答1:


You get the currently active core number with PRACTICE function CORE() e.g. like this

PRINT CORE()

while you can always execute a command when you hit a breakpoint with the /CMD option of the Break.Set command:

Break.Set <addr> /CMD "<TRACE32 command>"

Putting both together you get

Break.Set 0x10000 /CMD "PRINT ""Core "" CORE() "" stopped at "" PP()"

Note: In TRACE32 double-quotes are escaped with double-quotes. Function PP() returns the current program counter. If you want to restart you core immediately add option /RESUME to Break.Set.



来源:https://stackoverflow.com/questions/33040795/check-in-trace-32-on-which-cpu-breakpoint-stopped

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!