110 CHAPTER 3 J-Link software and documentation package
J-Link / J-Trace (UM08001) ©
2004-2017 SEGGER Microcontroller GmbH & Co. KG
3.3.4 SEGGER-specific GDB protocol extensions
J-Link GDB Server implements some functionality which are not part of the standard
GDB remote protocol in general query packets. These SEGGER-specific general query
packets can be sent to GDB Server on the low-level of GDB, via maintanace com-
mands, or with a custom client connected to GDB Server.
General query packets start with a ’q’. SEGGER-specific general queries are followed
by the identifier ’Segger’ plus the command group, the actual command and its
parameters.
Following SEGGER-specific general query packets are available:
Query Packet Explanation
qSeggerSTRACE:config Configure STRACE for usage.
qSeggerSTRACE:start Start STRACE.
qSeggerSTRACE:stop Stop STRACE.
qSeggerSTRACE:read Read STRACE data.
qSeggerSWO:start Starts collecting SWO data.
qSeggerSWO:stop Stops collecting SWO data.
qSeggerSWO:read Reads data from SWO buffer.
qSeggerSWO:GetNumBytes Returns the SWO buffer status.
qSeggerSWO:GetSpeedInfo Returns info about supported speeds.
Table 3.5: General Queries