From 9b3a0b3c1d7afa35c5eb56a69600af841e0b78b5 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 20 Mar 2022 22:15:49 +0100 Subject: gdb: add watchpoint notes --- src/tools/gdb.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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] [thread ] + Create a watchpoint for , will break if 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 is read from. + awatch ... + Sets an access watchpoint, will break if is written to or read + from. +``` + ## Inspection ```markdown info functions [] -- cgit v1.2.3