• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/gdb/
1<html lang="en">
2<head>
3<title>Quitting GDB - 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.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="up" href="Invocation.html#Invocation" title="Invocation">
9<link rel="prev" href="Invoking-GDB.html#Invoking-GDB" title="Invoking GDB">
10<link rel="next" href="Shell-Commands.html#Shell-Commands" title="Shell Commands">
11<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12<!--
13Copyright (C) 1988-2013 Free Software Foundation, Inc.
14
15Permission is granted to copy, distribute and/or modify this document
16under the terms of the GNU Free Documentation License, Version 1.3 or
17any later version published by the Free Software Foundation; with the
18Invariant Sections being ``Free Software'' and ``Free Software Needs
19Free Documentation'', with the Front-Cover Texts being ``A GNU Manual,''
20and with the Back-Cover Texts as in (a) below.
21
22(a) The FSF's Back-Cover Text is: ``You are free to copy and modify
23this GNU Manual.  Buying copies from GNU Press supports the FSF in
24developing GNU and promoting software freedom.''
25-->
26<meta http-equiv="Content-Style-Type" content="text/css">
27<style type="text/css"><!--
28  pre.display { font-family:inherit }
29  pre.format  { font-family:inherit }
30  pre.smalldisplay { font-family:inherit; font-size:smaller }
31  pre.smallformat  { font-family:inherit; font-size:smaller }
32  pre.smallexample { font-size:smaller }
33  pre.smalllisp    { font-size:smaller }
34  span.sc    { font-variant:small-caps }
35  span.roman { font-family:serif; font-weight:normal; } 
36  span.sansserif { font-family:sans-serif; font-weight:normal; } 
37--></style>
38<link rel="stylesheet" type="text/css" href="../cs.css">
39</head>
40<body>
41<div class="node">
42<a name="Quitting-GDB"></a>
43<p>
44Next:&nbsp;<a rel="next" accesskey="n" href="Shell-Commands.html#Shell-Commands">Shell Commands</a>,
45Previous:&nbsp;<a rel="previous" accesskey="p" href="Invoking-GDB.html#Invoking-GDB">Invoking GDB</a>,
46Up:&nbsp;<a rel="up" accesskey="u" href="Invocation.html#Invocation">Invocation</a>
47<hr>
48</div>
49
50<h3 class="section">2.2 Quitting <span class="sc">gdb</span></h3>
51
52<p><a name="index-exiting-_0040value_007bGDBN_007d-60"></a><a name="index-leaving-_0040value_007bGDBN_007d-61"></a>
53     
54<a name="index-quit-_0040r_007b_005b_007d_0040var_007bexpression_007d_0040r_007b_005d_007d-62"></a>
55<a name="index-q-_0040r_007b_0028_0040code_007bquit_007d_0029_007d-63"></a>
56<dl><dt><code>quit </code><span class="roman">[</span><var>expression</var><span class="roman">]</span><dt><code>q</code><dd>To exit <span class="sc">gdb</span>, use the <code>quit</code> command (abbreviated
57<code>q</code>), or type an end-of-file character (usually <kbd>Ctrl-d</kbd>).  If you
58do not supply <var>expression</var>, <span class="sc">gdb</span> will terminate normally;
59otherwise it will terminate using the result of <var>expression</var> as the
60error code. 
61</dl>
62
63   <p><a name="index-interrupt-64"></a>An interrupt (often <kbd>Ctrl-c</kbd>) does not exit from <span class="sc">gdb</span>, but rather
64terminates the action of any <span class="sc">gdb</span> command that is in progress and
65returns to <span class="sc">gdb</span> command level.  It is safe to type the interrupt
66character at any time because <span class="sc">gdb</span> does not allow it to take effect
67until a time when it is safe.
68
69   <p>If you have been using <span class="sc">gdb</span> to control an attached process or
70device, you can release it with the <code>detach</code> command
71(see <a href="Attach.html#Attach">Debugging an Already-running Process</a>).
72
73   </body></html>
74
75