• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2011.09/share/doc/arm-arm-none-eabi/html/getting-started/
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>1.4.�Running and Debugging Your Program</title><link rel="stylesheet" href="cs.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"><link rel="home" href="index.html" title="Sourcery CodeBench Lite"><link rel="up" href="chap-quickstart.html" title="Chapter�1.�Quick Start"><link rel="prev" href="ch01s03.html" title="1.3.�Building Your Program"><link rel="next" href="chap-installation.html" title="Chapter�2.�Installation and Configuration"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">1.4.�Running and Debugging Your Program</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s03.html">Prev</a>�</td><th width="60%" align="center">Chapter�1.�Quick Start</th><td width="20%" align="right">�<a accesskey="n" href="chap-installation.html">Next</a></td></tr></table><hr></div><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id521465"></a>1.4.�Running and Debugging Your Program</h2></div></div></div><p>
2     The steps to run or debug your program depend on your target system and how
3     it is configured.  Choose the appropriate method for your target.
4     
5   </p><p><b>Run or debug your program in the simulator.�</b>
6       Sourcery CodeBench Lite includes an instruction-set simulator, which provides
7       an easy way to run or debug your program without requiring target
8       hardware.
9       The simulator can be run directly from the command line
10       (see <a class="xref" href="sec-gdbsimulator.html" title="4.3.�Running Applications in the Simulator">Section�4.3, &#8220;Running Applications in the Simulator&#8221;</a>) or via the debugger
11       (see <a class="xref" href="sec-remote-debugging.html" title="4.4.�Running Applications from GDB">Section�4.4, &#8220;Running Applications from GDB&#8221;</a>).
12     </p><p><b>Debug your program on the target using the Debug Sprite.�</b>
13       You can use the Sourcery CodeBench Debug Sprite to load and execute your
14       program on the target from the debugger.
15       
16       
17       
18       Refer to <a class="xref" href="sec-remote-debugging.html" title="4.4.�Running Applications from GDB">Section�4.4, &#8220;Running Applications from GDB&#8221;</a> for instructions
19       on using the Sprite from the GDB command line.
20       Detailed reference material for the Sourcery CodeBench Debug Sprite,
21       including information about supported debug devices, can
22       be found in <a class="xref" href="sprite.html" title="Chapter�6.�Sourcery CodeBench Debug Sprite">Chapter�6, &#8220;Sourcery CodeBench Debug Sprite&#8221;</a>.
23     </p><p><b>Debug your program on the target using a third-party debug device.�</b>
24       Sourcery CodeBench supports debugging programs on the remote target
25       using third-party debug devices that can communicate via
26       the GDB remote serial protocol.
27       
28       For command-line GDB instructions, see
29       <a class="xref" href="sec-remote-debugging.html" title="4.4.�Running Applications from GDB">Section�4.4, &#8220;Running Applications from GDB&#8221;</a>.
30     </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s03.html">Prev</a>�</td><td width="20%" align="center"><a accesskey="u" href="chap-quickstart.html">Up</a></td><td width="40%" align="right">�<a accesskey="n" href="chap-installation.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">1.3.�Building Your Program�</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">�Chapter�2.�Installation and Configuration</td></tr></table></div></body></html>
31