-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi
GDB is now being extended to support using ETM traces in branch tracing. and the remote protocol is also extended accordingly. to enable PyOcd or OpenOcd to support this feature, the interface to the debugger needs to be extended, more precisely, the commands protocol over usb.
this extension is to enable
-
getting the capabilities of the debugger (if it supports collecting the traces)
-
getting infos about the tracing mechanism (supported port sizes, buffer size)
-
start and stop collecting the traces
-
get the status of traces collection
-
get collected traces.
here is a proposal for the extension, a reference dummy implementation can also be provided. -
Modified: Response to DAP_Info capabilities: add 2 bits to the capabilities response to indicate if "Trace Port Analyzer" is present or not and to indicate if "TPA Streaming" is supported or not. the size can now be 1 or 2 bytes.
-
New: DAP_Info ID: TPA Port Sizes to get the list of supported port sizes, and its response
-
New: DAP_Info ID: TPA Trace Buffer Size to get the size of the TPA buffer used to collect the traces, and its response
see Dap_info.pdf for more details
DAP_Info.pdf -
New: DAP_TPA_PortSize: command to set the size of TPA port
see TAP_Port_size.pdf for more details
TAP_Port_size.pdf -
New: DAP_TPA_Transport: to select the transport used for the traces (DAP_TPA_Data or separate WinUSB endpoint)
see TPA_Transport.pdf for more details
TPA__Transport.pdf -
New: DAP_TPA_Control: command to start/stop collecting traces
see TPA_control.pdf for more details
TAP_Control.pdf -
New: DAP_TPA_Status: get the status of traces collection.
see TPA_status.pdf for more details
TPA__Status.pdf -
New: DAP_TPA_Data: retreive collected ETM data.
see TPA_Data.pdf for more details
TAP_Data.pdf
Kind Regrads
Zied Guermazi