old-cross-binutils/gdb/testsuite/gdb.threads
Jan Kratochvil 4403d8e9b3 gdb/
Fix watchpoints across inferior fork.
	* amd64-linux-nat.c (update_debug_registers_callback): Update the
	comment for linux_nat_iterate_watchpoint_lwps.
	(amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
	linux_nat_iterate_watchpoint_lwps.
	(amd64_linux_prepare_to_resume): New comment on Linux kernel.
	* i386-linux-nat.c (update_debug_registers_callback): Update the
	comment for linux_nat_iterate_watchpoint_lwps.
	(i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
	linux_nat_iterate_watchpoint_lwps.
	(i386_linux_prepare_to_resume): New comment on Linux kernel.
	* i386-nat.c: Include inferior.h.
	(dr_mirror): Remove.
	(i386_inferior_data, struct i386_inferior_data)
	(i386_inferior_data_get): New.
	(i386_debug_reg_state): Use i386_inferior_data_get.
	(i386_cleanup_dregs, i386_update_inferior_debug_regs)
	(i386_insert_watchpoint, i386_remove_watchpoint)
	(i386_stopped_data_address, i386_insert_hw_breakpoint)
	(i386_remove_hw_breakpoint): New variable state, use
	i386_debug_reg_state instead of DR_MIRROR.
	* linux-nat.c (delete_lwp): New declaration.
	(num_lwps): Move here from downwards.
	(delete_lwp_cleanup): New.
	(linux_child_follow_fork): Create new child_lp, call
	linux_nat_new_thread and linux_nat_prepare_to_resume before calling
	PTRACE_DETACH.
	(num_lwps): Move upwards.
	(linux_nat_iterate_watchpoint_lwps): New.
	* linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
	(linux_nat_iterate_watchpoint_lwps_ftype): New declaration.

gdb/testsuite/
	Fix watchpoints across inferior fork.
	* gdb.threads/watchpoint-fork-child.c: New file.
	* gdb.threads/watchpoint-fork-mt.c: New file.
	* gdb.threads/watchpoint-fork-parent.c: New file.
	* gdb.threads/watchpoint-fork-st.c: New file.
	* gdb.threads/watchpoint-fork.exp: New file.
	* gdb.threads/watchpoint-fork.h: New file.
2012-01-24 13:46:55 +00:00
..
attach-into-signal.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
attach-into-signal.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
attach-stopped.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
attach-stopped.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
bp_in_thread.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
bp_in_thread.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
corethreads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
corethreads.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
current-lwp-dead.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
current-lwp-dead.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
execl.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
execl.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
execl1.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
fork-child-threads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
fork-child-threads.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
fork-thread-pending.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
fork-thread-pending.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
gcore-thread.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
hand-call-in-threads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
hand-call-in-threads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
ia64-sigill.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
ia64-sigill.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
interrupted-hand-call.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
interrupted-hand-call.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
killed.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
killed.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
leader-exit.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
leader-exit.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
linux-dp.c
linux-dp.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
local-watch-wrong-thread.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
local-watch-wrong-thread.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
Makefile.in
manythreads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
manythreads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
multi-create.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
multi-create.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
no-unwaited-for-left.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
no-unwaited-for-left.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-1.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-1.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-2.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-2.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-3.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-3.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-4.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
non-ldr-exc-4.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
pending-step.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
pending-step.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
print-threads.c
print-threads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
pthread_cond_wait.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
pthread_cond_wait.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
pthreads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
pthreads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
schedlock.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
schedlock.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
sigthread.c
sigthread.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
staticthreads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
staticthreads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
step.c
step.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
step2.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
switch-threads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
switch-threads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
thread-execl.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
thread-execl.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
thread-find.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
thread-specific.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
thread-specific.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
thread-unwindonsignal.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
thread_check.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
thread_check.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
thread_events.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
thread_events.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
threadapply.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
threadapply.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
threxit-hop-specific.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
threxit-hop-specific.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
tls-main.c
tls-nodebug.c
tls-nodebug.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
tls-shared.c
tls-shared.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
tls-var-main.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
tls-var.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
tls-var.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
tls.c
tls.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
tls2.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
watchpoint-fork-child.c gdb/ 2012-01-24 13:46:55 +00:00
watchpoint-fork-mt.c gdb/ 2012-01-24 13:46:55 +00:00
watchpoint-fork-parent.c gdb/ 2012-01-24 13:46:55 +00:00
watchpoint-fork-st.c gdb/ 2012-01-24 13:46:55 +00:00
watchpoint-fork.exp gdb/ 2012-01-24 13:46:55 +00:00
watchpoint-fork.h gdb/ 2012-01-24 13:46:55 +00:00
watchthreads-reorder.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
watchthreads-reorder.exp Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
watchthreads.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
watchthreads.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00
watchthreads2.c Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
watchthreads2.exp 2012-01-16 Pedro Alves <palves@redhat.com> 2012-01-16 16:21:53 +00:00