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">
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>
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.
27 Starting program: prog
28 Breakpoint
1, main (argc=
1, argv=
0xeffff21c) at prog.c:
3
31 4 char *execarg =
"hello!";