The signal passed to the GDB client is the immediate value (10 in the example) of the
software breakpoint instruction. <nSteps> specifies, how many instructions need to
be executed until the exception return occurs. In most cases this will be 2 (which is
the default value), if the handler function is set as the exception handler. If it is
called indirectly as a subroutine from the exception handler, there may be more
steps required.
It is mandatory to have the function declared with the "naked" attribute and to have
the bx lr instruction immediately after the software breakpoint instruction. Other-
wise the software breakpoint will be treated as a usual breakpoint.
Example
jlinkgdbserver -excdbg 4
3.3.5.7 -jtagconf
Syntax
-jtagconf <IRPre>,<DRPre>
Description
Configures a JTAG scan chain with multiple devices on it. <IRPre> is the sum of
IRLens of all devices closer to TDI, where IRLen is the number of bits in the IR
(Instruction Register) of one device. <DRPre> is the number of devices closer to TDI.
For more detailed information of how to configure a scan chain with multiple devices
please refer to See "Determining values for scan chain configuration" on page 183..
Example
#Select the second device, where there is 1 device in front with IRLen 4
jlinkgdbserver -jtagconf 4,1
3.3.5.8 -localhostonly
Description
Starts the GDB Server with the option to listen on localhost only (This means that
only TCP/IP connections from localhost are accepted) or on any IP address. To allow
remote debugging (connecting to GDBServer from another PC), deactivate this
option.
If no parameter is given, it will be set to 1 (active).
Note:
For the GUI version, this setting is persistent for following uses of GDB
Server until changed via command line option or the GUI.
Syntax
-LocalhostOnly <State>
Example
jlinkgdbserver -LocalhostOnly 0 //Listen on any IP address (Linux/MAC default)
jlinkgdbserver -LocalhostOnly 1 //Listen on localhost only (Windows default)
3.3.5.9 -log
Description
Starts the GDB Server with the option to write the output into a given log file.
The file will be created if it does not exist. If it exists the previous content will be
removed. Paths including spaces need to be set between quotes.
Syntax
-log <LogFilePath>
J-Link / J-Trace (UM08001)
© 2004-2017 SEGGER Microcontroller GmbH & Co. KG
119
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers