Next: Shell Commands, Previous: Invoking GDB, Up: Invocation [Contents][Index]
quit [expression]
q
To exit ROCGDB, use the quit
command (abbreviated
q
), or type an end-of-file character (usually Ctrl-d). If you
do not supply expression, ROCGDB will terminate normally;
otherwise it will terminate using the result of expression as the
error code.
An interrupt (often Ctrl-c) does not exit from ROCGDB, but rather terminates the action of any ROCGDB command that is in progress and returns to ROCGDB command level. It is safe to type the interrupt character at any time because ROCGDB does not allow it to take effect until a time when it is safe.
If you have been using ROCGDB to control an attached process or
device, you can release it with the detach
command
(see Debugging an Already-running Process).