90
3.3.5.7 -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.8 -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>
Example
jlinkgdbserver -log "C:\my path\to\file.log"
3.3.5.9 -logtofile
Description
Starts the GDB Server with the option to write the output into a log file.
If no file is given via -log, the log file will be created in the GDB Server application
directory.
Note:
For the GUI version, this setting is persistent for following uses of GDB
Server until changed via -nologtofile or the GUI.
Syntax
-logtofile
Example
jlinkgdbserver -logtofile
jlinkgdbserver -logtofile -log "C:\my path\to\file.log"
3.3.5.10 -noir
Description
Do not initialize the CPU registers on startup.
Note:
For the GUI version, this setting is persistent for following uses of GDB
Server until changed via -ir or the GUI.
J-Link / J-Trace (UM08001)
CHAPTER 3
J-Link software and documentation package
© 2004-2013 SEGGER Microcontroller GmbH & Co. KG
Need help?
Do you have a question about the J-Link and is the answer not in the manual?
Questions and answers