Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / GDB-MI-Symbol-Query.html
blob59cfe572005b0207cfcde3d6e2d22b5bfd518786
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%20Symbol%20Query">GDB/MI Symbol Query</a>,
13 Next:<a rel="next" accesskey="n" href="GDB-MI-Target-Manipulation.html#GDB%2fMI%20Target%20Manipulation">GDB/MI Target Manipulation</a>,
14 Previous:<a rel="previous" accesskey="p" href="GDB-MI-Stack-Manipulation.html#GDB%2fMI%20Stack%20Manipulation">GDB/MI Stack Manipulation</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"><small>GDB/MI</small> Symbol Query Commands</h3>
21 <h4 class="subheading">The <code>-symbol-info-address</code> Command</h4>
23 <h5 class="subsubheading">Synopsis</h5>
25 <pre class="example"> -symbol-info-address <var>symbol</var>
26 </pre>
28 <p>Describe where <var>symbol</var> is stored.
30 <h5 class="subsubheading">GDB Command</h5>
32 <p>The corresponding GDB command is <code>info address</code>.
34 <h5 class="subsubheading">Example</h5>
36 <p>N.A.
38 <h4 class="subheading">The <code>-symbol-info-file</code> Command</h4>
40 <h5 class="subsubheading">Synopsis</h5>
42 <pre class="example"> -symbol-info-file
43 </pre>
45 <p>Show the file for the symbol.
47 <h5 class="subsubheading">GDB Command</h5>
49 <p>There's no equivalent GDB command. <code>gdbtk</code> has
50 <code>gdb_find_file</code>.
52 <h5 class="subsubheading">Example</h5>
54 <p>N.A.
56 <h4 class="subheading">The <code>-symbol-info-function</code> Command</h4>
58 <h5 class="subsubheading">Synopsis</h5>
60 <pre class="example"> -symbol-info-function
61 </pre>
63 <p>Show which function the symbol lives in.
65 <h5 class="subsubheading">GDB Command</h5>
67 <p><code>gdb_get_function</code> in <code>gdbtk</code>.
69 <h5 class="subsubheading">Example</h5>
71 <p>N.A.
73 <h4 class="subheading">The <code>-symbol-info-line</code> Command</h4>
75 <h5 class="subsubheading">Synopsis</h5>
77 <pre class="example"> -symbol-info-line
78 </pre>
80 <p>Show the core addresses of the code for a source line.
82 <h5 class="subsubheading">GDB Command</h5>
84 <p>The corresponding GDB comamnd is <code>info line</code>.
85 <code>gdbtk</code> has the <code>gdb_get_line</code> and <code>gdb_get_file</code> commands.
87 <h5 class="subsubheading">Example</h5>
89 <p>N.A.
91 <h4 class="subheading">The <code>-symbol-info-symbol</code> Command</h4>
93 <h5 class="subsubheading">Synopsis</h5>
95 <pre class="example"> -symbol-info-symbol <var>addr</var>
96 </pre>
98 <p>Describe what symbol is at location <var>addr</var>.
100 <h5 class="subsubheading">GDB Command</h5>
102 <p>The corresponding GDB command is <code>info symbol</code>.
104 <h5 class="subsubheading">Example</h5>
106 <p>N.A.
108 <h4 class="subheading">The <code>-symbol-list-functions</code> Command</h4>
110 <h5 class="subsubheading">Synopsis</h5>
112 <pre class="example"> -symbol-list-functions
113 </pre>
115 <p>List the functions in the executable.
117 <h5 class="subsubheading">GDB Command</h5>
119 <p><code>info functions</code> in GDB, <code>gdb_listfunc</code> and
120 <code>gdb_search</code> in <code>gdbtk</code>.
122 <h5 class="subsubheading">Example</h5>
124 <p>N.A.
126 <h4 class="subheading">The <code>-symbol-list-types</code> Command</h4>
128 <h5 class="subsubheading">Synopsis</h5>
130 <pre class="example"> -symbol-list-types
131 </pre>
133 <p>List all the type names.
135 <h5 class="subsubheading">GDB Command</h5>
137 <p>The corresponding commands are <code>info types</code> in GDB,
138 <code>gdb_search</code> in <code>gdbtk</code>.
140 <h5 class="subsubheading">Example</h5>
142 <p>N.A.
144 <h4 class="subheading">The <code>-symbol-list-variables</code> Command</h4>
146 <h5 class="subsubheading">Synopsis</h5>
148 <pre class="example"> -symbol-list-variables
149 </pre>
151 <p>List all the global and static variable names.
153 <h5 class="subsubheading">GDB Command</h5>
155 <p><code>info variables</code> in GDB, <code>gdb_search</code> in <code>gdbtk</code>.
157 <h5 class="subsubheading">Example</h5>
159 <p>N.A.
161 <h4 class="subheading">The <code>-symbol-locate</code> Command</h4>
163 <h5 class="subsubheading">Synopsis</h5>
165 <pre class="example"> -symbol-locate
166 </pre>
168 <h5 class="subsubheading">GDB Command</h5>
170 <p><code>gdb_loc</code> in <code>gdbtk</code>.
172 <h5 class="subsubheading">Example</h5>
174 <p>N.A.
176 <h4 class="subheading">The <code>-symbol-type</code> Command</h4>
178 <h5 class="subsubheading">Synopsis</h5>
180 <pre class="example"> -symbol-type <var>variable</var>
181 </pre>
183 <p>Show type of <var>variable</var>.
185 <h5 class="subsubheading">GDB Command</h5>
187 <p>The corresponding GDB command is <code>ptype</code>, <code>gdbtk</code> has
188 <code>gdb_obj_variable</code>.
190 <h5 class="subsubheading">Example</h5>
192 <p>N.A.
194 </body></html>