trace32lauterbach

Trace32 is there way to know if PRACTICE cmm finished?


I am using RCL for controlling Trace32 remotely. It is well-known that when running any PRACTICE command interactively (e.g. cd.do my_script.cmm) the command itself completes immediately, while the CMM script continues to run.

Same applies when executing command remotely.

My question: if there any function in Trace32 that I could call and determine if any CMM is currently running? Not code (that one is STATE.RUN()), but PRACTICE script.


Solution

  • Answer provided by @dev15:

    There is hidden API dbg.library.t32_getpracticestate() which is similar to T32_GetPracticeState.

    Couldn't accept previous as answer because my question was specifically for RCL, not ctype DLL.

    Also can be used addition check of stack depth dbg.fnc.practice_stackdepth() to determine if Trace32 is in middle of CMM script or not.