📄 mipsdbx.htm
字号:
<title>Source-Level Debug with dbx</title><h1>Source-Level Debug with dbx</h1><!--INDEX "Source-Level Debug with MIPS' dbx" --><!--INDEX "MIPS' dbx" -->This page describes the procedure for using MIPS' dbx with PMON/IMON. Thisprocedure will <em>not</em> work with Sun's dbx. The Sun dbx is targetedto the Sparc, the MIPS dbx is targeted to the MIPS R3000.<p>To use PMON/IMON with MIPS' dbx, you will need two serial ports. Oneserial port (connected to the Monitor's tty0) will be used as the console. This port is used to issue the command 'debug'. It is also the port whereprogram I/O will appear. The second port is used for dbx to communicate with the Monitor's tty1. It is also used to download the program prior toswitching to 'debug' mode.<p><pre>-- Compile and link programs with -g% 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% dbxr3000 -prom test1 Invoke dbx.(dbx) stop in main Optionally set breakpoint at main.(dbx) run Prepare for execution.PMON> debug Begin executing.</pre><p>See also the <a href="c_debug.htm">debug</a>command.</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 + -