diff options
author | Luis Machado <luisgpm@br.ibm.com> | 2007-12-17 12:32:23 +0000 |
---|---|---|
committer | Luis Machado <luisgpm@br.ibm.com> | 2007-12-17 12:32:23 +0000 |
commit | 37e4754d76e3bf273485512fd6c81201e2d571f9 (patch) | |
tree | 0d2c3c6081ce834d5c3aa608e953766bae7683c9 /gdb/doc | |
parent | 28e78778f51cfb840c676bcc243bba0bdca79119 (diff) | |
download | gdb-37e4754d76e3bf273485512fd6c81201e2d571f9.zip gdb-37e4754d76e3bf273485512fd6c81201e2d571f9.tar.gz gdb-37e4754d76e3bf273485512fd6c81201e2d571f9.tar.bz2 |
* breakpoint.c: (watch_command_1): Parse additional optional
"thread" parameter to the watchpoint command and set the
"thread" member of the breakpoint struct.
* doc/gdb.texinfo: Add new parameter's description.
* testsuite/gdb.base/watch_thread_num.c: New testcase source file.
* testsuite/gdb.base/watch_thread_num.exp: New testcase expect file.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index c1150b8..fb28f78 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,7 @@ +2007-12-17 Luis Machado <luisgpm@br.ibm.com> + + * doc/gdb.texinfo: Add new parameter's description. + 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com> * gdb.texinfo (Overview): Clarify run-length encoding diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 36f1dc4..65c97a2 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -3216,7 +3216,7 @@ times slower than normal execution. (But this may still be worth it, to catch errors where you have no clue what part of your program is the culprit.) -On some systems, such as HP-UX, @sc{gnu}/Linux and most other +On some systems, such as HP-UX, PowerPC, @sc{gnu}/Linux and most other x86-based targets, @value{GDBN} includes support for hardware watchpoints, which do not slow down the running of your program. @@ -3357,6 +3357,13 @@ way of doing that would be to set a code breakpoint at the entry to the In multi-threaded programs, watchpoints will detect changes to the watched expression from every thread. +@kindex watch thread thread_num +@item watch @var{expr} thread @var{threadnum} +Set a watchpoint that will break when @var{expr} is either read from +or written into by the thread identified by @var{threadnum}. If @var{expr} +is modified by any other threads not matching @var{threadnum}, @value{GDBN} +will not break. Note that this will only work with Hardware Watchpoints. + @quotation @emph{Warning:} In multi-threaded programs, software watchpoints have only limited usefulness. If @value{GDBN} creates a software |