c-debugger4.html

来自「vxworks相关论文」· HTML 代码 · 共 163 行

HTML
163
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><link rel="STYLESHEET" type="text/css" href="wrs.css"><title>    Debugger   </title></head><body bgcolor="FFFFFF"><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-debugger.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-debugger3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-debugger5.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p><font face="Helvetica, sans-serif" class="sans"><h3 class="H2"><i><a name="85113">8.4  &nbsp;&nbsp;Source Code Display Options</a></i></h3></font><dl class="margin"><dl class="margin"><dd><p class="Body"><a name="85115"> </a>While the debugger is running, you can display your program code in the editor as source code, as symbolic disassembly of object code, and as mixed source and disassembly.</p><dd><p class="Body"><a name="88106"> </a>The <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Source</font></b>, <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Disassembly</font></b>, and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Mixed Source and Disassembly</font></b> commands in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">View</font></b> menu control the display of code in the editor:</p></dl><dl class="margin"><dd><div class="Item"><a name="88132"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Source</font></b></div><dl class="margin"><dd><div class="Indent"><a name="88161"> </a>Displays the original high-level language source code (usually C or C++). This is the default style of program display.</div><br></dl><dd><div class="Item"><a name="88154"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Disassembly</font></b></div><dl class="margin"><dd><div class="Indent"><a name="86074"> </a>Displays a symbolic disassembly of your program's object code. This style of display is the default for routines compiled without debugging information (such as VxWorks system routines supplied as object code only).</div><br></dl><dd><div class="Item"><a name="85128"> </a><b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Mixed Source and Disassembly</font></b></div><dl class="margin"><dd><div class="Indent"><a name="85130"> </a>Displays both high-level source and a symbolic disassembly, with the assembly-level code shown as close as possible to the source code that generates the corresponding object code. </div><br></dl></dl><dl class="margin"><dd><p class="Body"><a name="88210"> </a><a href="c-debugger4.html#85142">Figure&nbsp;8-19</a> shows a mixed-mode code display. <div class="frame"><h4 class="EntityTitle"><a name="85142"><font face="Helvetica, sans-serif" size="-1" class="sans">Figure 8-19:&nbsp;&nbsp;Mixed Source and Disassembly Display</font></a></h4><dl class="margin"><div class="Anchor"><a name="85139"> </a><img class="figure" border="0" src="images/c-debugger50.gif"></div></dl></div></p><dd><p class="Body"><a name="85143"> </a>Source display (in either the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Source</font></b> or the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Mixed Source and Disassembly</font></b> view) requires that your application modules be compiled with debugging information (the <b class="command">-g</b> option with the GNU compiler) which is the default for compilations with the Tornado project facility (see <a href="c-builder.html#104670"><i class="title">Projects</i></a>). </p></dl></dl><dl class="margin"><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="91965"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE:  </font></b></a>For some source lines, compilers generate code that is not contiguous, because it is sometimes more efficient to interleave the object code from separate source lines. In this situation, the mixed-mode display rearranges the assembly listing to group all object code below the line that generates it. </div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout><dl class="margin"><dd><p class="Body"><a name="85146"> </a>The debugger is fully operational no matter what view you select. For example, you can set breakpoints in a line of assembly code, and you can use the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Step</font></b> and <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Next</font></b> commands in either assembly or source. (In views that show assembly, these commands step by instructions rather than by source lines; see <a href="c-debugger3.html#84529"><i class="title">8.3.7&nbsp;Continuing Through a Program</i></a>.)</p><dd><p class="Body"><a name="85150"> </a>The editor, however, works only on source code. Thus, when you display a view with disassembled instructions, the editor display goes into read-only mode until you either stop debugging or switch to the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Source</font></b> view.</p></dl><dd><p class="table" callout><table border="0" cellpadding="0" cellspacing="0"><tr valign="top"><td valign="top" width="40"><br><img border="0" alt="*" src="icons/note.gif"></td><td><hr><div class="CalloutCell"><a name="91983"><b class="symbol_UC"><font face="Helvetica, sans-serif" size="-1" class="sans">NOTE:  </font></b></a>Disassembly takes a long time the first time you switch to a view that requires it. Subsequently, in the same debugging session, you can switch views quickly. The disassembly information is not persistent; the debugger discards it when you stop debugging (or if you close the source file with the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">Close</font></b> command in the <b class="guiLabel"><font face="Helvetica, sans-serif" size="-1" class="sans">File</font></b> menu). </div></td></tr><tr valign="top"><td></td><td><hr></td></tr><tr valign="middle"><td colspan="20"></td></tr></table></p callout></dl><a name="foot"><hr></a><p class="navbar" align="right"><a href="index.html"><img border="0" alt="[Contents]" src="icons/contents.gif"></a><a href="GuideIX.html"><img border="0" alt="[Index]" src="icons/index.gif"></a><a href="c-debugger.html"><img border="0" alt="[Top]" src="icons/top.gif"></a><a href="c-debugger3.html"><img border="0" alt="[Prev]" src="icons/prev.gif"></a><a href="c-debugger5.html"><img border="0" alt="[Next]" src="icons/next.gif"></a></p></body></html><!---by WRS Documentation (), Wind River Systems, Inc.    conversion tool:  Quadralay WebWorks Publisher 4.0.11    template:         CSS Template, Jan 1998 - Jefro --->

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?