Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Sparclet-Execution.html
blob2205fe4b110fbcd2e9f845de9a4f0062f0d1fb84
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="Sparclet%20Execution">Sparclet Execution</a>,
13 Previous:<a rel="previous" accesskey="p" href="Sparclet-Download.html#Sparclet%20Download">Sparclet Download</a>,
14 Up:<a rel="up" accesskey="u" href="Sparclet.html#Sparclet">Sparclet</a>
15 <hr><br>
16 </div>
18 <h5 class="subsubsection">Running and debugging</h5>
20 <p>You can now begin debugging the task using GDB's execution control
21 commands, <code>b</code>, <code>step</code>, <code>run</code>, etc. See the GDB
22 manual for the list of commands.
24 <pre class="example"> (gdbslet) b main
25 Breakpoint 1 at 0x12010000: file prog.c, line 3.
26 (gdbslet) run
27 Starting program: prog
28 Breakpoint 1, main (argc=1, argv=0xeffff21c) at prog.c:3
29 3 char *symarg = 0;
30 (gdbslet) step
31 4 char *execarg = "hello!";
32 (gdbslet)
33 </pre>
35 </body></html>