origin: http://forum.segger.com/index.php?page=Thread&threadID=1347
Hi,
I just checked it again:
The current GDBServer does not perform a reset of the target at startup by default.
The doc is a bit outdated there because old/very old versions of the GDBServer always performed a reset of the target at startup.
The only cases under which a reset of the target is performed:
1) "monitor reset" is executed
2) GDB sends a 'k', 'r' or 'R' packet which are packets that are used for (k)ill, (r)eset or (R)estart. These packets are used by some GDB based IDEs to provide a reset button etc. in the IDE.
3) If attaching to the target is not possible which can happen for example if the target is in a low-power mode which disables the debug interface etc.
If J-Link knows the device (if the device has been selected in GDBServer at startup via command line) and so can perform a special connect in such cases, it is possible that a reset is performed.
Best regards
Alex
Hi,
I just checked it again:
The current GDBServer does not perform a reset of the target at startup by default.
The doc is a bit outdated there because old/very old versions of the GDBServer always performed a reset of the target at startup.
The only cases under which a reset of the target is performed:
1) "monitor reset" is executed
2) GDB sends a 'k', 'r' or 'R' packet which are packets that are used for (k)ill, (r)eset or (R)estart. These packets are used by some GDB based IDEs to provide a reset button etc. in the IDE.
3) If attaching to the target is not possible which can happen for example if the target is in a low-power mode which disables the debug interface etc.
If J-Link knows the device (if the device has been selected in GDBServer at startup via command line) and so can perform a special connect in such cases, it is possible that a reset is performed.
Best regards
Alex