GDB provides two flavors of remote debugging via the RSP
target remote. This is the GDB command documented in the GDB User Guide ([3]).
target extended-remote. The RSP server is made persistent. When the target exits, the server does not close the connection. The user is able to restart the target program, or load and run an alternative program.