carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/concepts/cdt_c_over_dbg.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
<meta name="ProgId" content="FrontPage.Editor.Document">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
<title>Debug overview</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
<h1>Debug overview</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
<p>The debugger lets you see what's going on &quot;inside&quot; a program while it 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
executes.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
<p>In order to debug your application, you must use executables compiled for 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
debugging. These executables contain additional debug information that lets the 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
debugger make direct associations between the source code and the binaries 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
generated from that original source.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
<p>The CDT debugger uses GDB as the underlying debug engine. It translates each 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
user interface action into a sequence of GDB commands and processes the output from GDB to 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
display the current state of the program being debugged. </p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
<p><b>Tip:</b> Editing the source after compiling causes the line numbering to be out of 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
step because the debug information is tied directly to the source. Similarly, 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
debugging optimized binaries can also cause unexpected jumps in the execution 
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
trace.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
<a href="cdt_c_over_cdt.htm">Overview of the CDT</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
<a href="cdt_c_dbg_info.htm">Debug information</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
<a href="../tasks/cdt_o_debug.htm">Debugging</a><br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
&nbsp;</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
<a href="../reference/cdt_o_run_dbg_pages.htm">Run and Debug dialog box</a></p><p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" > </p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
</html>