Commands and Functions
TRACE32 debugger commands and functions are provided using the CommandService and FunctionService class. Each debugger has its own instance for each, which can be used through it’s cmd and fnc attribute.
Commands and functions are the basis for the TRACE32 configuration.
Example: Select CPU and print selected CPU
>>> dbg.cmd("SYStem.CPU CortexA55")
>>> cpu = dbg.fnc("CPU()")
>>> print(cpu)
CortexA55
CMM scripts must be executed using the dbg.cmm() function:
>>> dbg.cmm("script.cmm")