Yes. The Break.Set command provides the /CMD option, which executes a TRACE32 command whenever the breakpoint is hit.
For example:
Break.Set /Program /CMD "DO myScript.cmm"When the breakpoint is reached, TRACE32 executes the specified PRACTICE script.
If you want the target program to continue running after the script has finished, add the following command to the end of the script:
GoAlternatively, Break.Set supports the /RESUME option, which automatically resumes target execution after executing the command specified with /CMD.
However, /RESUME is not suitable when the command is a script execution like DO myScript.cmm, because target execution resumes immediately after the DO command is issued and does not wait for the PRACTICE script to complete. If the script needs to perform debugger operations before the target continues, it should explicitly end with a Go command instead.
Add a comment