about summary refs log tree commit diff stats
path: root/subx/Readme.md
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-01-08 15:39:53 -0800
committerKartik Agaram <vc@akkartik.com>2019-01-08 15:46:55 -0800
commitf7f0d6318231ff081ed6ff2ef30d8e1823e11c70 (patch)
treeb85f03addb53d757bf3eac59e7c9cc93648d1709 /subx/Readme.md
parent96a6bac52d6f4a67932e54d25166bf7961718e9d (diff)
downloadmu-f7f0d6318231ff081ed6ff2ef30d8e1823e11c70.tar.gz
4915
In the process of building next-token I finally added some support for a
debugging situation I've found myself in a couple of times: wondering "what
changed this memory location"?
Diffstat (limited to 'subx/Readme.md')
-rw-r--r--subx/Readme.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/subx/Readme.md b/subx/Readme.md
index 42f2cedb..93ef21e1 100644
--- a/subx/Readme.md
+++ b/subx/Readme.md
@@ -466,6 +466,12 @@ rudimentary but hopefully still workable toolkit:
   Now the trace should have a lot more detail on which of these labels was
   reached, and precisely when the exit was taken.
 
+* If you find yourself wondering, "when did the contents of this memory
+  address change?", `subx run` has some rudimentary support for _watch
+  points_. Just insert a label starting with `$watch-` before an instruction
+  that writes to the address, and its value will start getting dumped to the
+  trace after every instruction thereafter.
+
 * Once we have a sense for precisely which instructions we want to look at,
   it's time to look at the trace as a whole. Key is the state of registers
   before each instruction. If a function is receiving bad arguments it becomes