Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Messages-Warnings.html
blob704710f1f125c896491962470154aaaf3b2fa6d3
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="Messages%2fWarnings">Messages/Warnings</a>,
13 Next:<a rel="next" accesskey="n" href="Debugging-Output.html#Debugging%20Output">Debugging Output</a>,
14 Previous:<a rel="previous" accesskey="p" href="Numbers.html#Numbers">Numbers</a>,
15 Up:<a rel="up" accesskey="u" href="Controlling-GDB.html#Controlling%20GDB">Controlling GDB</a>
16 <hr><br>
17 </div>
19 <h3 class="section">Optional warnings and messages</h3>
21 <p>By default, GDB is silent about its inner workings. If you are
22 running on a slow machine, you may want to use the <code>set verbose</code>
23 command. This makes GDB tell you when it does a lengthy
24 internal operation, so you will not think it has crashed.
26 <p>Currently, the messages controlled by <code>set verbose</code> are those
27 which announce that the symbol table for a source file is being read;
28 see <code>symbol-file</code> in <a href="Files.html#Files">Commands to specify files</a>.
30 <dl>
31 <dt><code>set verbose on</code>
32 <dd>Enables GDB output of certain informational messages.
34 <br><dt><code>set verbose off</code>
35 <dd>Disables GDB output of certain informational messages.
37 <br><dt><code>show verbose</code>
38 <dd>Displays whether <code>set verbose</code> is on or off.
39 </dl>
41 <p>By default, if GDB encounters bugs in the symbol table of an
42 object file, it is silent; but if you are debugging a compiler, you may
43 find this information useful (see <a href="Symbol-Errors.html#Symbol%20Errors">Errors reading symbol files</a>).
45 <dl>
47 <br><dt><code>set complaints </code><var>limit</var><code></code>
48 <dd>Permits GDB to output <var>limit</var> complaints about each type of
49 unusual symbols before becoming silent about the problem. Set
50 <var>limit</var> to zero to suppress all complaints; set it to a large number
51 to prevent complaints from being suppressed.
53 <br><dt><code>show complaints</code>
54 <dd>Displays how many symbol complaints GDB is permitted to produce.
56 </dl>
58 <p>By default, GDB is cautious, and asks what sometimes seems to be a
59 lot of stupid questions to confirm certain commands. For example, if
60 you try to run a program which is already running:
62 <pre class="example"> (gdb) run
63 The program being debugged has been started already.
64 Start it from the beginning? (y or n)
65 </pre>
67 <p>If you are willing to unflinchingly face the consequences of your own
68 commands, you can disable this "feature":
70 <dl>
72 <br><dt><code>set confirm off</code>
73 <dd>Disables confirmation requests.
75 <br><dt><code>set confirm on</code>
76 <dd>Enables confirmation requests (the default).
78 <br><dt><code>show confirm</code>
79 <dd>Displays state of confirmation requests.
81 </dl>
83 </body></html>