| |||
| Home > RealView Debugger Commands > Alphabetical command reference > DISCONNECT | |||
Disconnects the debugger from a target.
[,all | ,gui] [{,debug|,nodebug}] [=][@DISCONNECTtarget]
where:
allDisconnects all connections.
guiEnables you to choose the disconnect mode from a dialog or prompt:
If you use this option when running in GUI mode, it displays a dialog.
If you use this option when running in command line mode, it displays a prompt.
The disconnect specifies what state you want the debugger to leave the target in after the disconnection. See Disconnect modes for more details.
debugDisconnects
using the As-is with Debug mode (see Disconnect modes).
nodebugDisconnects
using the As-is without Debug mode (see Disconnect modes). This is the
default.
targetSpecifies the required target name as it appears in the GUI.
The DISCONNECT command disconnects the debugger from a target, undoing the action of a previous CONNECT. You can specify the target as outlined for the CONNECT command.
If you set the disconnect mode in the board (.BRD)
file of the target, the target disconnects using that mode. If you
specify prompt for the disconnect mode, then
the DISCONNECT command acts as though you specified
the ,gui qualifier.
The DISCONNECT command runs asynchronously.
You cannot use the DISCONNECT command inside a macro.
When you disconnect from a target, the disconnect mode determines what happens to the target:
Leave the target in the current run state and the current debug state. That is:
If the target is running, leave it running. If the target is stopped in debug state, leave it stopped.
Current debug state intact, for example, breakpoints remain set.
Leave the target in the current run state but without the current debug state. That is:
If the target is running, leave it running. If the target is stopped in debug state, leave it stopped.
Current debug state lost, for example, breakpoints are removed.
The disconnect modes available depend on the Debug Interface you are using.
If you disconnect from an OS-aware connection, RealView Debugger sends a command to the Debug Agent, which might resume all stopped threads depending on how the Debug Agent is implemented.
The following examples show how to use DISCONNECT:
disconnect,allDisconnect all currently connected connections.
disconnectDisconnect the current target:
In the GUI, this is the target shown in the title bar of the Code window where you enter the command. Therefore, if you enter the command in a Code window that is attached to a connection, then the connection to which the Code window is attached is disconnected.
You can determine the current connection using the BOARD command.
disconnect,gui @ARM940T_0@RVIDisplay the Disconnect Mode selection box to disconnect
the target @ARM940T_0@RVI.
disconnect
@ARM7TDMI@RVISSDisconnect
the named RVISS target. The Debug Configuration, @RVISS,
is optional where there is no ambiguity.
Target names must be entered as they appear in the Connect to Target window.