Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Stopping.html
blob9b3051ae77250354e99ba4d8386135e97b671753
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="Stopping">Stopping</a>,
13 Next:<a rel="next" accesskey="n" href="Stack.html#Stack">Stack</a>,
14 Previous:<a rel="previous" accesskey="p" href="Running.html#Running">Running</a>,
15 Up:<a rel="up" accesskey="u" href="index.html#Top">Top</a>
16 <hr><br>
17 </div>
19 <h2 class="chapter">Stopping and Continuing</h2>
21 <p>The principal purposes of using a debugger are so that you can stop your
22 program before it terminates; or so that, if your program runs into
23 trouble, you can investigate and find out why.
25 <p>Inside GDB, your program may stop for any of several reasons,
26 such as a signal, a breakpoint, or reaching a new line after a
27 GDB command such as <code>step</code>. You may then examine and
28 change variables, set new breakpoints or remove old ones, and then
29 continue execution. Usually, the messages shown by GDB provide
30 ample explanation of the status of your program--but you can also
31 explicitly request this information at any time.
33 <dl>
34 <dt><code>info program</code>
35 <dd>Display information about the status of your program: whether it is
36 running or not, what process it is, and why it stopped.
37 </dl>
39 <ul class="menu">
40 <li><a accesskey="1" href="Breakpoints.html#Breakpoints">Breakpoints</a>: Breakpoints, watchpoints, and catchpoints
41 <li><a accesskey="2" href="Continuing-and-Stepping.html#Continuing%20and%20Stepping">Continuing and Stepping</a>: Resuming execution
42 <li><a accesskey="3" href="Signals.html#Signals">Signals</a>: Signals
43 <li><a accesskey="4" href="Thread-Stops.html#Thread%20Stops">Thread Stops</a>: Stopping and starting multi-thread programs
44 </ul>
46 </body></html>