Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorKen Ryall2006-06-15 15:36:23 +0000
committerKen Ryall2006-06-15 15:36:23 +0000
commit95ffc3032a14192fb7c0e3ec6250c44e07b5bb1a (patch)
treed08544191e05ed0a13e9a5c580b67fa9b238fe8f /doc
parentb3fa88e4c8c5cfb319cfd8dddc78a4b3e07e60e7 (diff)
downloadorg.eclipse.cdt-95ffc3032a14192fb7c0e3ec6250c44e07b5bb1a.tar.gz
org.eclipse.cdt-95ffc3032a14192fb7c0e3ec6250c44e07b5bb1a.tar.xz
org.eclipse.cdt-95ffc3032a14192fb7c0e3ec6250c44e07b5bb1a.zip
Added docs describing how to import and debug existing executables.
Diffstat (limited to 'doc')
-rw-r--r--doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.pngbin0 -> 16106 bytes
-rw-r--r--doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.pngbin0 -> 17530 bytes
-rw-r--r--doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.pngbin0 -> 16297 bytes
-rw-r--r--doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.pngbin0 -> 30653 bytes
-rw-r--r--doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes05.pngbin0 -> 6624 bytes
-rw-r--r--doc/org.eclipse.cdt.doc.user/tasks/cdt_o_debug.htm1
-rw-r--r--doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm51
-rw-r--r--doc/org.eclipse.cdt.doc.user/topics_Tasks.xml1
8 files changed, 53 insertions, 0 deletions
diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png
new file mode 100644
index 00000000000..a834735ca8b
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png
new file mode 100644
index 00000000000..80d4b3f1e80
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png
new file mode 100644
index 00000000000..4a30d50dde6
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png
new file mode 100644
index 00000000000..6c3051a6ef4
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes05.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes05.png
new file mode 100644
index 00000000000..b6c958213ff
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes05.png
Binary files differ
diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_debug.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_debug.htm
index 5bdd6fadbe8..6e0c14ec21b 100644
--- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_debug.htm
+++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_o_debug.htm
@@ -15,6 +15,7 @@
<p>This section explains how to debug your project.</p>
<img src="../images/trans.gif" border="0" width="25" height="1" alt=""><a style="text-decoration:none" href="cdt_t_debug_prog.htm">Debugging a program</a><br>
+ <img src="../images/trans.gif" border="0" width="25" height="1" alt=""><a style="text-decoration:none" href="cdt_t_debug_exes.htm">Debugging an existing executable</a><br>
<img src="../images/trans.gif" border="0" width="25" height="1" alt=""><a style="text-decoration:none" href="cdt_o_brkpnts_watch.htm">Working with breakpoints and watchpoints</a><br>
<img src="../images/trans.gif" border="0" width="50" height="1" alt=""><a style="text-decoration:none" href="cdt_t_add_brkpnts.htm">Adding breakpoints</a><br>
<img src="../images/trans.gif" border="0" width="50" height="1" alt=""><a style="text-decoration:none" href="cdt_t_add_watch.htm">Adding watchpoints</a><br>
diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm
new file mode 100644
index 00000000000..46c166599cd
--- /dev/null
+++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm
@@ -0,0 +1,51 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<meta http-equiv="Content-Style-Type" content="text/css" />
+<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
+<title>Debugging Existing Executables</title>
+<link rel="stylesheet" type="text/css" href="../help.css">
+</head>
+
+<body>
+
+<h1>Debugging an Existing Executable </h1>
+<p>Use the import feature to import and debug an executable you have already built. This feature will automatically create a project and debug configuration for you. This is helpful if you have an executable built with debug symbols but may not have the project used to build the executable. </p>
+
+ <h4>Importing Executables for Debugging </h4>
+ <ol>
+ <li>Select the File &gt; Import... menu item
+ to open the Import wizard dialog:
+ <p align="center"><img src="../images/cdt_debug_exes01.png" width="476" height="430" hspace="12" vspace="12" /></p>
+ </li>
+ <li>Select C/C++ Executable, then click Next to open the Import Executable wizard.</li>
+ <li>Enter the executable path in the Select Executable field or click Browse to locate the executable.</li>
+ <p>Use Select Executable to choose a single executable or Search Directory to select one or more executables to import from the specified directory.</p>
+ <p align="center"><img src="../images/cdt_debug_exes02.png" width="518" height="434" hspace="12" vspace="12" /></p>
+ <p class="figure"><b>NOTE</b> You can import any executable, but only those built with debug symbols will be let you step through source code and see variable values. </p>
+ <li>Click Next to see the Choose Project page</li>
+ <p>Use the Choose Project page to create a new project (you can use the default name assigned) and debug configuration. You can import executables into a new project or an existing one. The new project is configured to hold the executable, but not to build anything. </p>
+ <p align="center"><img src="../images/cdt_debug_exes03.png" width="518" height="434" hspace="12" vspace="12" /></p>
+ <p class="figure">Select from the menu of launch configuration types to select one for debugging. This launch configuration will be created for you with default settings for debugging your executable. </p>
+ <li>Click Finish</li>
+ <p>The executable is added to the C/C++ Projects view and the Launch configuration window appears..</p>
+ <p align="center"><img src="../images/cdt_debug_exes04.png" width="814" height="450" hspace="12" vspace="12" /></p>
+ <li>Click Debug</li>
+ <p>The debugger launches and you can begin debugging the executable. </p>
+ <li>Setting breakpoints </li>
+ <p>Expand the executable in the C++ Projects view to see the list of source files. Only executables built with debug symbols will show a list of source files. The source files can be opened in the editor so you can set breakpoints. Use these files only for debugging, you can not change them and rebuild the executable with this project. </p>
+ <p><img src="../images/cdt_debug_exes05.png" alt="C++ Projects View" width="210" height="275" hspace="12" vspace="12" /></p>
+ </ol>
+</div>
+<p><img border="0" src="../images/ngconcepts.gif" alt="Related concepts" width="143" height="21" /> <br />
+ <a href="../concepts/cdt_c_over_dbg.htm">Debug overview</a><br />
+ <a href="../concepts/cdt_c_dbg_info.htm">Debug information</a></p>
+<p><img border="0" src="../images/ngtasks.gif" alt="Related tasks" width="143" height="21" /> <br />
+ <a href="cdt_o_debug.htm">Debugging</a></p>
+<p><img border="0" src="../images/ngref.gif" alt="Related reference" width="143" height="21" /> <br />
+ <a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p>
+<h5>&nbsp;</h5>
+ <div id="footer">Copyright Nokia Corporation and others 2006. </div>
+</body>
+</html>
diff --git a/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml b/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml
index 60f699027bf..3586463c540 100644
--- a/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml
+++ b/doc/org.eclipse.cdt.doc.user/topics_Tasks.xml
@@ -62,6 +62,7 @@
</topic>
<topic label="Debugging" href="tasks/cdt_o_debug.htm">
<topic label="Debugging a program" href="tasks/cdt_t_debug_prog.htm"/>
+ <topic label="Debugging an existing executable" href="tasks/cdt_t_debug_exes.htm"/>
<topic label="Working with breakpoints and watchpoints" href="tasks/cdt_o_brkpnts_watch.htm">
<topic label="Adding breakpoints" href="tasks/cdt_t_add_brkpnts.htm"/>
<topic label="Adding watchpoints" href="tasks/cdt_t_add_watch.htm"/>

Back to the top