diff options
Diffstat (limited to 'tools/gdb.html')
-rw-r--r-- | tools/gdb.html | 11 |
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 @@ <bp_list>: 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] <expr> [thread <tnum>] + Create a watchpoint for <expr>, will break if <expr> 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 <expr> is read from. + awatch ... + Sets an access watchpoint, will break if <expr> 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 [<regex>] List functions matching <regex>. List all functions if no <regex> |