How cdleonard/pyt32 works
pyt32 is a small Python library for controlling Lauterbach TRACE32. Its main workflow is to obtain an interface, send TRACE32 commands, and optionally parse returned values; users can start this through the CLI or use the library directly. The ctypes API is the default interface, with t32rem and GDB monitor alternatives. The README gives little detail beyond the product purpose, so the graph follows the sampled runtime code and omits undocumented capabilities.
Main entry points: ctypes.py ctypes transport · __main__.py CLI commands · t32remcmd.py t32rem transport · gdb.py GDB commands
Components 12
Entry points
- CLI commands
t32/__main__.py - GDB commands
t32/gdb.py
Interfaces
- ctypes transport
t32/ctypes.py - t32rem transport
t32/t32remcmd.py
Shared API
- Interface factory
t32/__init__.py - Interface contract
t32/base.py - Echo parser
t32/__init__.py
Other components
- User
- GDB user
- TRACE32
- t32rem tool
- GDB monitor
Connections 15
- User → CLI commands: runs commands
t32/__main__.py - CLI commands → Interface factory: gets interface
t32/__main__.py - Interface factory → ctypes transport: creates default
t32/__init__.py - CLI commands → Interface contract: invokes methods
t32/__main__.py - ctypes transport → Interface contract: implements
t32/ctypes.py - t32rem transport → Interface contract: implements
t32/t32remcmd.py - GDB commands → CLI commands: dispatches commands
t32/gdb.py - GDB user → GDB commands: invokes commands
t32/gdb.py - GDB commands → GDB monitor: executes monitor
t32/gdb.py - GDB monitor → TRACE32: sends commands
- ctypes transport → TRACE32: calls C API
t32/ctypes.py - t32rem transport → t32rem tool: runs subprocess
t32/t32remcmd.py - t32rem tool → TRACE32: forwards commands
- ctypes transport → Echo parser: parses echo
t32/ctypes.py - t32rem transport → Echo parser: parses echo
t32/t32remcmd.py