diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-03-20 22:15:49 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2022-03-20 22:15:49 +0100 |
commit | 9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5 (patch) | |
tree | 31a19e42b3e0130dba4b02e739704708dc9e8461 /src/tools | |
parent | 58c6d98940ca322bfe91d8ae6c8fc3e988347513 (diff) | |
download | notes-9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5.tar.gz notes-9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5.zip |
gdb: add watchpoint notes
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/gdb.md | 13 |
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>] |