1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
3 <!--Converted with LaTeX2HTML 99.1 release (March 30, 1999)
4 original version by: Nikos Drakos, CBLU, University of Leeds
5 * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
6 * with significant contributions from:
7 Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
10 <TITLE>7.5 Debugger Commands.</TITLE>
11 <META NAME="description" CONTENT="7.5 Debugger Commands.">
12 <META NAME="keywords" CONTENT="sdccman">
13 <META NAME="resource-type" CONTENT="document">
14 <META NAME="distribution" CONTENT="global">
16 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
17 <META NAME="Generator" CONTENT="LaTeX2HTML v99.1 release">
18 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
20 <LINK REL="STYLESHEET" HREF="sdccman.css">
22 <LINK REL="next" HREF="node55.html">
23 <LINK REL="previous" HREF="node53.html">
24 <LINK REL="up" HREF="node49.html">
25 <LINK REL="next" HREF="node55.html">
29 <!--Navigation Panel-->
30 <A NAME="tex2html1084"
32 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
33 <A NAME="tex2html1078"
35 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
36 <A NAME="tex2html1072"
38 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>
39 <A NAME="tex2html1080"
41 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A>
42 <A NAME="tex2html1082"
44 <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A>
46 <B> Next:</B> <A NAME="tex2html1085"
47 HREF="node55.html">7.6 Interfacing with XEmacs.</A>
48 <B> Up:</B> <A NAME="tex2html1079"
49 HREF="node49.html">7. SDCDB - Source</A>
50 <B> Previous:</B> <A NAME="tex2html1073"
51 HREF="node53.html">7.4 Command Line Options.</A>
52   <B> <A NAME="tex2html1081"
53 HREF="node1.html">Contents</A></B>
54   <B> <A NAME="tex2html1083"
55 HREF="node61.html">Index</A></B>
58 <!--End of Navigation Panel-->
59 <!--Table of Child-Links-->
60 <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
63 <LI><A NAME="tex2html1086"
64 HREF="node54.html#SECTION00085100000000000000">7.5.1 break [line | file:line | function | file:function]</A>
65 <LI><A NAME="tex2html1087"
66 HREF="node54.html#SECTION00085200000000000000">7.5.2 clear [line | file:line | function | file:function ]</A>
67 <LI><A NAME="tex2html1088"
68 HREF="node54.html#SECTION00085300000000000000">7.5.3 continue</A>
69 <LI><A NAME="tex2html1089"
70 HREF="node54.html#SECTION00085400000000000000">7.5.4 finish</A>
71 <LI><A NAME="tex2html1090"
72 HREF="node54.html#SECTION00085500000000000000">7.5.5 delete [n]</A>
73 <LI><A NAME="tex2html1091"
74 HREF="node54.html#SECTION00085600000000000000">7.5.6 info [break | stack | frame | registers ]</A>
75 <LI><A NAME="tex2html1092"
76 HREF="node54.html#SECTION00085700000000000000">7.5.7 step</A>
77 <LI><A NAME="tex2html1093"
78 HREF="node54.html#SECTION00085800000000000000">7.5.8 next</A>
79 <LI><A NAME="tex2html1094"
80 HREF="node54.html#SECTION00085900000000000000">7.5.9 run</A>
81 <LI><A NAME="tex2html1095"
82 HREF="node54.html#SECTION000851000000000000000">7.5.10 ptype variable </A>
83 <LI><A NAME="tex2html1096"
84 HREF="node54.html#SECTION000851100000000000000">7.5.11 print variable</A>
85 <LI><A NAME="tex2html1097"
86 HREF="node54.html#SECTION000851200000000000000">7.5.12 file filename</A>
87 <LI><A NAME="tex2html1098"
88 HREF="node54.html#SECTION000851300000000000000">7.5.13 frame</A>
89 <LI><A NAME="tex2html1099"
90 HREF="node54.html#SECTION000851400000000000000">7.5.14 set srcmode</A>
91 <LI><A NAME="tex2html1100"
92 HREF="node54.html#SECTION000851500000000000000">7.5.15 ! simulator command</A>
93 <LI><A NAME="tex2html1101"
94 HREF="node54.html#SECTION000851600000000000000">7.5.16 quit.</A>
96 <!--End of Table of Child-Links-->
99 <H2><A NAME="SECTION00085000000000000000">
100 7.5 Debugger Commands.</A>
104 As mention earlier the command interface for the debugger has been
105 deliberately kept as close the GNU debugger gdb, as possible. This
106 will help the integration with existing graphical user interfaces
107 (like ddd, xxgdb or xemacs) existing for the GNU debugger.
111 <H3><A NAME="SECTION00085100000000000000">
112 7.5.1 break [line | file:line | function | file:function]</A>
116 Set breakpoint at specified line or function:
120 <I><B>sdcdb>break 100 </B></I>
122 <I><B>sdcdb>break foo.c:100</B></I>
124 <I><B>sdcdb>break funcfoo</B></I>
126 <I><B>sdcdb>break foo.c:funcfoo</B></I>
130 <H3><A NAME="SECTION00085200000000000000">
131 7.5.2 clear [line | file:line | function | file:function ]</A>
135 Clear breakpoint at specified line or function:
139 <I><B>sdcdb>clear 100</B></I>
141 <I><B>sdcdb>clear foo.c:100</B></I>
143 <I><B>sdcdb>clear funcfoo</B></I>
145 <I><B>sdcdb>clear foo.c:funcfoo</B></I>
149 <H3><A NAME="SECTION00085300000000000000">
154 Continue program being debugged, after breakpoint.
158 <H3><A NAME="SECTION00085400000000000000">
163 Execute till the end of the current function.
167 <H3><A NAME="SECTION00085500000000000000">
172 Delete breakpoint number 'n'. If used without any option clear ALL
173 user defined break points.
177 <H3><A NAME="SECTION00085600000000000000">
178 7.5.6 info [break | stack | frame | registers ]</A>
184 <LI>info break - list all breakpoints</LI>
185 <LI>info stack - show the function call stack.</LI>
186 <LI>info frame - show information about the current execution frame.</LI>
187 <LI>info registers - show content of all registers.</LI>
192 <H3><A NAME="SECTION00085700000000000000">
197 Step program until it reaches a different source line.
201 <H3><A NAME="SECTION00085800000000000000">
206 Step program, proceeding through subroutine calls.
210 <H3><A NAME="SECTION00085900000000000000">
215 Start debugged program.
219 <H3><A NAME="SECTION000851000000000000000">
220 7.5.10 ptype variable </A>
224 Print type information of the variable.
228 <H3><A NAME="SECTION000851100000000000000">
229 7.5.11 print variable</A>
233 print value of variable.
237 <H3><A NAME="SECTION000851200000000000000">
238 7.5.12 file filename</A>
242 load the given file name. Note this is an alternate method of loading
247 <H3><A NAME="SECTION000851300000000000000">
252 print information about current frame.
256 <H3><A NAME="SECTION000851400000000000000">
257 7.5.14 set srcmode</A>
261 Toggle between C source & assembly source.
265 <H3><A NAME="SECTION000851500000000000000">
266 7.5.15 ! simulator command</A>
270 Send the string following '!' to the simulator, the simulator response
271 is displayed. Note the debugger does not interpret the command being
272 sent to the simulator, so if a command like 'go' is sent the debugger
273 can loose its execution context and may display incorrect values.
277 <H3><A NAME="SECTION000851600000000000000">
283 "Watch me now. Iam going Down. My name is Bobby Brown"
287 <!--Navigation Panel-->
288 <A NAME="tex2html1084"
290 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
291 <A NAME="tex2html1078"
293 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
294 <A NAME="tex2html1072"
296 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A>
297 <A NAME="tex2html1080"
299 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents_motif.gif"></A>
300 <A NAME="tex2html1082"
302 <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index_motif.gif"></A>
304 <B> Next:</B> <A NAME="tex2html1085"
305 HREF="node55.html">7.6 Interfacing with XEmacs.</A>
306 <B> Up:</B> <A NAME="tex2html1079"
307 HREF="node49.html">7. SDCDB - Source</A>
308 <B> Previous:</B> <A NAME="tex2html1073"
309 HREF="node53.html">7.4 Command Line Options.</A>
310   <B> <A NAME="tex2html1081"
311 HREF="node1.html">Contents</A></B>
312   <B> <A NAME="tex2html1083"
313 HREF="node61.html">Index</A></B>
314 <!--End of Navigation Panel-->
317 <BR><I>2001-07-13</I>