OSDN Git Service

gdb/
authorpalves <palves>
Sun, 22 Nov 2009 06:17:17 +0000 (06:17 +0000)
committerpalves <palves>
Sun, 22 Nov 2009 06:17:17 +0000 (06:17 +0000)
commit64c0939a91a9f7ba7b51b090e7f2aa3d10d1c14c
tree457627a4df48344736dbe63640e24e467e89fdde
parent521caacc3ced79a9f84c21854c899de561b95f74
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]