J-Link / J-Trace (UM08001) © 2004-2017 SEGGER Microcontroller GmbH & Co. KG
127
The following table describes the defined exit codes of GDB Server.
3.3.7 Semihosting
Semihosting can be used with J-Link GDBServer and GDB based debug environments
but needs to be explicitly enabled. For more information, please refer to Enabling
semihosting in J-Link GDBServer on page 463.
Exit code Description
0 No error. GDB Server closed normally.
-1 Unknown error. Should not happen.
-2 Failed to open listener port (Default: 2331)
-3
Could not connect to target. No target voltage detected or
connection failed.
-4 Failed to accept a connection from GDB.
-5
Failed to parse the command line options, wrong or missing
command line parameter.
-6 Unknown or no device name set.
-7 Failed to connect to J-Link.
Table 3.11: GDB Server exit codes