Ending the Remote Debugging Session

Use either the detach or the disconnect command to break the connection between the IDB and the remote agent:

When you have finished debugging the remote program, use the detach command to free it from IDB control:

detach_remote_command

: detach

In most cases, the program will resume its execution, but this depends on a particular gdbserver. IDB can connect to another program, after detach is issued.

The disconnect command behaves the same as detach, except the program is not resumed:

disconnect_remote_command

: detach

The program will wait for IDB (this instance or another) to reconnect to continue debugging. IDB can connect to another program after disconnect is issued.