aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gdb.html
diff options
context:
space:
mode:
authorjohannst <johannst@users.noreply.github.com>2022-03-20 21:16:42 +0000
committerjohannst <johannst@users.noreply.github.com>2022-03-20 21:16:42 +0000
commit0cf0869c24bfb00dfd7884f0e40565c2859df3f3 (patch)
tree51eda79326b399e00b2fe4c56840b8ed26e52f08 /tools/gdb.html
parentbc55732c55a0c854f6e3c3cc40efd603907ecdcb (diff)
downloadnotes-0cf0869c24bfb00dfd7884f0e40565c2859df3f3.tar.gz
notes-0cf0869c24bfb00dfd7884f0e40565c2859df3f3.zip
deploy: 9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5
Diffstat (limited to 'tools/gdb.html')
-rw-r--r--tools/gdb.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/gdb.html b/tools/gdb.html
index ca64e43..c51da87 100644
--- a/tools/gdb.html
+++ b/tools/gdb.html
@@ -219,6 +219,17 @@
&lt;bp_list&gt;: Space separates list, eg 'command 2 5-8' to run command
for breakpoints: 2,5,6,7,8.
</code></pre>
+<h2><a class="header" href="#watchpoints" id="watchpoints">Watchpoints</a></h2>
+<pre><code class="language-markdown"> watch [-location|-l] &lt;expr&gt; [thread &lt;tnum&gt;]
+ Create a watchpoint for &lt;expr&gt;, will break if &lt;expr&gt; is written to.
+ Watchpoints respect scope of variables, -l can be used to watch the
+ memory location instead.
+ rwatch ...
+ Sets a read watchpoint, will break if &lt;expr&gt; is read from.
+ awatch ...
+ Sets an access watchpoint, will break if &lt;expr&gt; is written to or read
+ from.
+</code></pre>
<h2><a class="header" href="#inspection" id="inspection">Inspection</a></h2>
<pre><code class="language-markdown"> info functions [&lt;regex&gt;]
List functions matching &lt;regex&gt;. List all functions if no &lt;regex&gt;