]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp
gdb/
authorPedro Alves <palves@redhat.com>
Sat, 21 Nov 2009 21:17:17 +0000 (21:17 +0000)
committerPedro Alves <palves@redhat.com>
Sat, 21 Nov 2009 21:17:17 +0000 (21:17 +0000)
commitf6bc20088048522ffb945254f59f824f5cbdaebd
tree88a4983875865ce7d3659f85c5628703923eb225
parent8c2fb5deb3f40d81b448d54d7eaa02cde2c6e014
gdb/
* breakpoint.h (struct breakpoint) <watchpoint_thread>: New field.
* breakpoint.c (watchpoint_in_thread_scope): New.
(update_watchpoint): Skip if the local watchpoint's thread doesn't
match the current thread, or if the current thread is running.
(watchpoint_check): Ditto.
(watch_command_1): Set the watchpoint's watchpoint_thread field.

gdb/testsuite/
* gdb.threads/local-watch-wrong-thread.c,
gdb.threads/local-watch-wrong-thread.exp: New files.
gdb/ChangeLog
gdb/breakpoint.c
gdb/breakpoint.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/local-watch-wrong-thread.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/local-watch-wrong-thread.exp [new file with mode: 0644]