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">
12 Node:
<a name=
"GDB%2fMI%20Miscellaneous%20Commands">GDB/MI Miscellaneous Commands
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"GDB-MI-Stack-Manipulation.html#GDB%2fMI%20Stack%20Manipulation">GDB/MI Stack Manipulation
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"GDB-MI-Program-Control.html#GDB%2fMI%20Program%20Control">GDB/MI Program Control
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"GDB-MI.html#GDB%2fMI">GDB/MI
</a>
19 <h3 class=
"section">Miscellaneous GDB commands in
<small>GDB/MI
</small></h3>
21 <h4 class=
"subheading">The
<code>-gdb-exit
</code> Command
</h4>
23 <h5 class=
"subsubheading">Synopsis
</h5>
25 <pre class=
"example"> -gdb-exit
28 <p>Exit GDB immediately.
30 <h5 class=
"subsubheading">GDB Command
</h5>
32 <p>Approximately corresponds to
<code>quit
</code>.
34 <h5 class=
"subsubheading">Example
</h5>
36 <pre class=
"smallexample"> (gdb)
40 <h4 class=
"subheading">The
<code>-gdb-set
</code> Command
</h4>
42 <h5 class=
"subsubheading">Synopsis
</h5>
44 <pre class=
"example"> -gdb-set
47 <p>Set an internal GDB variable.
49 <h5 class=
"subsubheading">GDB Command
</h5>
51 <p>The corresponding GDB command is
<code>set
</code>.
53 <h5 class=
"subsubheading">Example
</h5>
55 <pre class=
"smallexample"> (gdb)
61 <h4 class=
"subheading">The
<code>-gdb-show
</code> Command
</h4>
63 <h5 class=
"subsubheading">Synopsis
</h5>
65 <pre class=
"example"> -gdb-show
68 <p>Show the current value of a GDB variable.
70 <h5 class=
"subsubheading">GDB command
</h5>
72 <p>The corresponding GDB command is
<code>show
</code>.
74 <h5 class=
"subsubheading">Example
</h5>
76 <pre class=
"smallexample"> (gdb)
82 <h4 class=
"subheading">The
<code>-gdb-version
</code> Command
</h4>
84 <h5 class=
"subsubheading">Synopsis
</h5>
86 <pre class=
"example"> -gdb-version
89 <p>Show version information for GDB. Used mostly in testing.
91 <h5 class=
"subsubheading">GDB Command
</h5>
93 <p>There's no equivalent GDB command. GDB by default shows this
94 information when you start an interactive session.
96 <h5 class=
"subsubheading">Example
</h5>
98 <pre class=
"smallexample"> (gdb)
101 ~Copyright
2000 Free Software Foundation, Inc.
102 ~GDB is free software, covered by the GNU General Public License, and
103 ~you are welcome to change it and/or distribute copies of it under
104 ~ certain conditions.
105 ~Type
"show copying" to see the conditions.
106 ~There is absolutely no warranty for GDB. Type
"show warranty" for
108 ~This GDB was configured as
109 "--host=sparc-sun-solaris2.5.1 --target=ppc-eabi".