📄 c_t.htm
字号:
<title>The t Command</title><h1>t/to</h1><!--INDEX "t command" "to command" "single step" "trace command" -->The t command performs a trace (single step) operation.<p></dl><h2>Format</h2><dl><dd>The format for this command is:<p><pre>t [-vbci]</pre>or:<p><pre>to [-vbci]</pre>where:<p><dl><dd><table><tr><td>-v </td><td>lists each step (verbose).</td></tr><tr><td>-b </td><td>captures only branches.</td></tr><tr><td>-c </td><td>captures only calls (jal instruction).</td></tr><tr><td>-i </td><td>stops on invalid program counter.</td></tr><tr><td>cnt </td><td>traces cnt instructions.</td></tr></table><p></dl></dl><h2>Functional Description</h2><dl><dd>The t command executes the instruction addressed by the current valueof the EPC register. The to command is similar to the t command, exceptthat the to command treats an entire procedure as a single step. Forexample, if the current instruction at EPC is a jump and linkinstruction, jal, the next stop is at EPC+8.<p>A branch instruction and the instruction in its delay slot are executedas a single step. This also means that two-instruction loops are treatedas a single step. This command is implemented by setting a <a href="brkpts.htm">breakpoint</a> at the following instruction.<p>The command or commands that are executed on completion of the single step is determined by the value of the environment variable brkcmd.<p>An example illustrating the use of this command follows.<p><pre> PMON> t Pmon+0x240 3c09a07f lui t1,0xa07f</pre></dl><h2>Files</h2><dl><dd>The t/to commands are located in <a href="../mon/go.c">mon/go.c</a>.</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 + -