diff options
author | Tom Tromey <tromey@adacore.com> | 2021-08-30 13:58:48 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-12-02 08:58:22 -0700 |
commit | 8a18382f94515b4be7e51dbe3865d202403d21d5 (patch) | |
tree | c3621e18b8693281e0b45d5a1db988bd103f0947 /gdb/doc | |
parent | 36cb9e7e17cae5e05f007f37e555873c4f22594a (diff) | |
download | gdb-8a18382f94515b4be7e51dbe3865d202403d21d5.zip gdb-8a18382f94515b4be7e51dbe3865d202403d21d5.tar.gz gdb-8a18382f94515b4be7e51dbe3865d202403d21d5.tar.bz2 |
Add "task" keyword to the "watch" command
Breakpoints in gdb can be made specific to an Ada task using the
"task" qualifier. This patch applies this same idea to watchpoints.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 9d50779..40f3e24 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -4860,7 +4860,7 @@ slow down the running of your program. @table @code @kindex watch -@item watch @r{[}-l@r{|}-location@r{]} @var{expr} @r{[}thread @var{thread-id}@r{]} @r{[}mask @var{maskvalue}@r{]} +@item watch @r{[}-l@r{|}-location@r{]} @var{expr} @r{[}thread @var{thread-id}@r{]} @r{[}mask @var{maskvalue}@r{]} @r{[}task @var{task-id}@r{]} Set a watchpoint for an expression. @value{GDBN} will break when the expression @var{expr} is written into by the program and its value changes. The simplest (and the most popular) use of this command is @@ -4877,6 +4877,9 @@ change the value of @var{expr}, @value{GDBN} will not break. Note that watchpoints restricted to a single thread in this way only work with Hardware Watchpoints. +Similarly, if the @code{task} argument is given, then the watchpoint +will be specific to the indicated Ada task (@pxref{Ada Tasks}). + Ordinarily a watchpoint respects the scope of variables in @var{expr} (see below). The @code{-location} argument tells @value{GDBN} to instead watch the memory referred to by @var{expr}. In this case, |