Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / GDB-MI-Miscellaneous-Commands.html
blob437fcb0b307ce8c2bd1a49da73a58752fb7284cc
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="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>
16 <hr><br>
17 </div>
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
26 </pre>
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)
37 -gdb-exit
38 </pre>
40 <h4 class="subheading">The <code>-gdb-set</code> Command</h4>
42 <h5 class="subsubheading">Synopsis</h5>
44 <pre class="example"> -gdb-set
45 </pre>
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)
56 -gdb-set $foo=3
57 ^done
58 (gdb)
59 </pre>
61 <h4 class="subheading">The <code>-gdb-show</code> Command</h4>
63 <h5 class="subsubheading">Synopsis</h5>
65 <pre class="example"> -gdb-show
66 </pre>
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)
77 -gdb-show annotate
78 ^done,value="0"
79 (gdb)
80 </pre>
82 <h4 class="subheading">The <code>-gdb-version</code> Command</h4>
84 <h5 class="subsubheading">Synopsis</h5>
86 <pre class="example"> -gdb-version
87 </pre>
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)
99 -gdb-version
100 ~GNU gdb 5.2.1
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
107 ~ details.
108 ~This GDB was configured as
109 "--host=sparc-sun-solaris2.5.1 --target=ppc-eabi".
110 ^done
111 (gdb)
112 </pre>
114 </body></html>