Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Quitting-GDB.html
blobf2bf551233d0c6765e21d542647af9dadebf19b5
1 <html lang="en">
2 <head>
3 <title>Debugging with GDB</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Debugging with GDB">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Quitting%20GDB">Quitting GDB</a>,
13 Next:<a rel="next" accesskey="n" href="Shell-Commands.html#Shell%20Commands">Shell Commands</a>,
14 Previous:<a rel="previous" accesskey="p" href="Invoking-GDB.html#Invoking%20GDB">Invoking GDB</a>,
15 Up:<a rel="up" accesskey="u" href="Invocation.html#Invocation">Invocation</a>
16 <hr><br>
17 </div>
19 <h3 class="section">Quitting GDB</h3>
21 <dl>
22 <dt><code>quit </code>[<code></code><var>expression</var><code></code>]<code></code>
23 <dd><dt><code>q</code>
24 <dd>To exit GDB, use the <code>quit</code> command (abbreviated
25 <code>q</code>), or type an end-of-file character (usually <kbd>C-d</kbd>). If you
26 do not supply <var>expression</var>, GDB will terminate normally;
27 otherwise it will terminate using the result of <var>expression</var> as the
28 error code.
29 </dl>
31 <p>An interrupt (often <kbd>C-c</kbd>) does not exit from GDB, but rather
32 terminates the action of any GDB command that is in progress and
33 returns to GDB command level. It is safe to type the interrupt
34 character at any time because GDB does not allow it to take effect
35 until a time when it is safe.
37 <p>If you have been using GDB to control an attached process or
38 device, you can release it with the <code>detach</code> command
39 (see <a href="Attach.html#Attach">Debugging an already-running process</a>).
41 </body></html>