aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2022-03-20 22:15:49 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2022-03-20 22:15:49 +0100
commit9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5 (patch)
tree31a19e42b3e0130dba4b02e739704708dc9e8461 /src/tools
parent58c6d98940ca322bfe91d8ae6c8fc3e988347513 (diff)
downloadnotes-9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5.tar.gz
notes-9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5.zip
gdb: add watchpoint notes
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/gdb.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/gdb.md b/src/tools/gdb.md
index 2318e0e..58bdccf 100644
--- a/src/tools/gdb.md
+++ b/src/tools/gdb.md
@@ -74,6 +74,19 @@
for breakpoints: 2,5,6,7,8.
```
+## Watchpoints
+```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.
+```
+
## Inspection
```markdown
info functions [<regex>]