about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-01-11 18:12:05 -0800
committerKartik Agaram <vc@akkartik.com>2019-01-11 18:12:05 -0800
commite92fa89edfd0236e655cea5d69c47aece40385a2 (patch)
tree928357916a2d7c773ca051c430e38bc46b3ad77c
parentdb8a9ab553535551ce80dcd5ce07cffb85f5cfb7 (diff)
downloadmu-e92fa89edfd0236e655cea5d69c47aece40385a2.tar.gz
4922
-rw-r--r--html/subx/039debug.cc.html13
-rw-r--r--subx/039debug.cc12
2 files changed, 13 insertions, 12 deletions
diff --git a/html/subx/039debug.cc.html b/html/subx/039debug.cc.html
index 5a8a9880..8983218e 100644
--- a/html/subx/039debug.cc.html
+++ b/html/subx/039debug.cc.html
@@ -21,6 +21,7 @@ a { color:inherit; }
 .Identifier { color: #af5f00; }
 .Normal { color: #000000; background-color: #c6c6c6; padding-bottom: 1px; }
 .Comment { color: #005faf; }
+.SalientComment { color: #0000af; }
 -->
 </style>
 
@@ -56,10 +57,10 @@ if ('onhashchange' in window) {
 <body onload='JumpToLine();'>
 <a href='https://github.com/akkartik/mu/blob/master/subx/039debug.cc'>https://github.com/akkartik/mu/blob/master/subx/039debug.cc</a>
 <pre id='vimCodeElement'>
-<span id="L1" class="LineNr"> 1 </span><span class="Comment">//: Some helpers for debugging.</span>
+<span id="L1" class="LineNr"> 1 </span><span class="SalientComment">//:: Some helpers for debugging.</span>
 <span id="L2" class="LineNr"> 2 </span>
-<span id="L3" class="LineNr"> 3 </span><span class="Comment">// Load the 'map' file generated during 'subx --map translate' when running 'subx --map --dump run'.</span>
-<span id="L4" class="LineNr"> 4 </span><span class="Comment">// (It'll only affect the trace.)</span>
+<span id="L3" class="LineNr"> 3 </span><span class="Comment">//: Load the 'map' file generated during 'subx --map translate' when running 'subx --map --dump run'.</span>
+<span id="L4" class="LineNr"> 4 </span><span class="Comment">//: (It'll only affect the trace.)</span>
 <span id="L5" class="LineNr"> 5 </span>
 <span id="L6" class="LineNr"> 6 </span><span class="Delimiter">:(before &quot;End Globals&quot;)</span>
 <span id="L7" class="LineNr"> 7 </span>map&lt;<span class="Comment">/*</span><span class="Comment">address</span><span class="Comment">*/</span><span class="Normal">uint32_t</span><span class="Delimiter">,</span> string&gt; <span class="Special"><a href='039debug.cc.html#L7'>Symbol_name</a></span><span class="Delimiter">;</span>  <span class="Comment">// used only by 'subx run'</span>
@@ -82,9 +83,9 @@ if ('onhashchange' in window) {
 <span id="L24" class="LineNr">24 </span><span class="Normal">if</span> <span class="Delimiter">(</span><a href='001help.cc.html#L256'>contains_key</a><span class="Delimiter">(</span><span class="Special"><a href='039debug.cc.html#L7'>Symbol_name</a></span><span class="Delimiter">,</span> <a href='010---vm.cc.html#L29'>EIP</a><span class="Delimiter">))</span>
 <span id="L25" class="LineNr">25 </span>  <a href='003trace.cc.html#L183'>trace</a><span class="Delimiter">(</span><span class="Constant">90</span><span class="Delimiter">,</span> <span class="Constant">&quot;run&quot;</span><span class="Delimiter">)</span> &lt;&lt; <span class="Constant">&quot;== label &quot;</span> &lt;&lt; get<span class="Delimiter">(</span><span class="Special"><a href='039debug.cc.html#L7'>Symbol_name</a></span><span class="Delimiter">,</span> <a href='010---vm.cc.html#L29'>EIP</a><span class="Delimiter">)</span> &lt;&lt; end<span class="Delimiter">();</span>
 <span id="L26" class="LineNr">26 </span>
-<span id="L27" class="LineNr">27 </span><span class="Comment">// If a label starts with '$watch-', make a note of the effective address</span>
-<span id="L28" class="LineNr">28 </span><span class="Comment">// computed by the next instruction. Start dumping out its contents to the</span>
-<span id="L29" class="LineNr">29 </span><span class="Comment">// trace after every subsequent instruction.</span>
+<span id="L27" class="LineNr">27 </span><span class="Comment">//: If a label starts with '$watch-', make a note of the effective address</span>
+<span id="L28" class="LineNr">28 </span><span class="Comment">//: computed by the next instruction. Start dumping out its contents to the</span>
+<span id="L29" class="LineNr">29 </span><span class="Comment">//: trace after every subsequent instruction.</span>
 <span id="L30" class="LineNr">30 </span>
 <span id="L31" class="LineNr">31 </span><span class="Delimiter">:(after &quot;Run One Instruction&quot;)</span>
 <span id="L32" class="LineNr">32 </span><a href='039debug.cc.html#L38'>dump_watch_points</a><span class="Delimiter">();</span>
diff --git a/subx/039debug.cc b/subx/039debug.cc
index 23123c0c..83ae3f52 100644
--- a/subx/039debug.cc
+++ b/subx/039debug.cc
@@ -1,7 +1,7 @@
-//: Some helpers for debugging.
+//:: Some helpers for debugging.
 
-// Load the 'map' file generated during 'subx --map translate' when running 'subx --map --dump run'.
-// (It'll only affect the trace.)
+//: Load the 'map' file generated during 'subx --map translate' when running 'subx --map --dump run'.
+//: (It'll only affect the trace.)
 
 :(before "End Globals")
 map</*address*/uint32_t, string> Symbol_name;  // used only by 'subx run'
@@ -24,9 +24,9 @@ void load_map(const string& map_filename) {
 if (contains_key(Symbol_name, EIP))
   trace(90, "run") << "== label " << get(Symbol_name, EIP) << end();
 
-// If a label starts with '$watch-', make a note of the effective address
-// computed by the next instruction. Start dumping out its contents to the
-// trace after every subsequent instruction.
+//: If a label starts with '$watch-', make a note of the effective address
+//: computed by the next instruction. Start dumping out its contents to the
+//: trace after every subsequent instruction.
 
 :(after "Run One Instruction")
 dump_watch_points();