📄 c_debug.htm
字号:
<title>The debug Command</title><h1>debug</h1><!--INDEX "debug command" dbx gdb -->The debug command initiates the <a href="mondef.htm">Monitor</a>'sgdb/dbx mode.<p></dl><h2>Format</h2><dl><dd>The format for the debug command is:<p><pre>debug [-svV] [-c args] </pre>where:<p><dl><dt>-s <dd>does not set client stack pointer.<dt>-v <dd>shows communication errors.<dt>-V <dd>sets the verbose option.<dt>-c args <dd>indicates that the argument or arguments args are to be passed to the client program.</dl></dl><h2>Functional Description</h2><dl><dd>The debug command causes the <a href="mondef.htm">Monitor</a> to enter gdb/dbx mode. It isintended to be used with either the GNU's gdb or MIPS' dbx source-leveldebugger. The -V option selects verbose mode. In verbose mode, each ofthe messages sent to and received from dbx are displayed on theterminal screen. It is not possible to leave verbose mode withoutleaving dbx mode and reentering dbx mode without the -V option. Bydefault, the <a href="mondef.htm">Monitor</a> displays in terse mode.<p>Examples illustrating the use of the debug command with MIPS' dbx follow. <p><pre>% cat /etc/remote.pdbx Display port information on host port1.port1:dv=/dev/tty1:br#9600:% cat ~/.dbxinit Display setup for dbx.set $pdbxport = "port1"set $usesockets=0set $manual_load = 1PMON> set hostport tty1 Specify protocol and port for target.PMON> set dlproto EtxAck PMON> set dlecho off PMON> load Prepare for download, and start.% edown /dev/tty1 < test1.rec% dbx -prom test1 Invoke dbx.(dbx) stop in main Optionally set breakpoint at main.(dbx) run Prepare for execution.PMON> debug Begin executing.</pre><p></dl><h2>See Also</h2><dl><dd><a href="c_set.htm">set</a>command for the setup of the environment variables.</dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -