gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 24 Jan 2012 13:49:58 +0000 (13:49 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 24 Jan 2012 13:49:58 +0000 (13:49 +0000)
commitd0d8b0c6675218bed37125a99c9fedb12f9c1265
treed0f620269b49c6eb5182c4cf12bd24c9dc65e5ba
parent4403d8e9b35649c5b24f65c0ec0decc3839e1164
gdb/
Fix watchpoints to be specific for each inferior.
* breakpoint.c (watchpoint_in_thread_scope): Verify also
current_program_space.
* i386-nat.c (i386_inferior_data_cleanup): New.
(i386_inferior_data_get): Replace variable inf_data_local by an
inferior_data call.
(i386_use_watchpoints): Initialize i386_inferior_data.
* linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
specific iterate_over_lwps.

gdb/testsuite/
Fix watchpoints to be specific for each inferior.
* gdb.multi/watchpoint-multi.c: New file.
* gdb.multi/watchpoint-multi.exp: New file.
gdb/ChangeLog
gdb/breakpoint.c
gdb/i386-nat.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.multi/watchpoint-multi.c [new file with mode: 0644]
gdb/testsuite/gdb.multi/watchpoint-multi.exp [new file with mode: 0644]