From 4c38200f7dda423c701d01639596df606b96433c Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 7 Oct 2011 17:15:15 +0000 Subject: 2011-10-07 Pedro Alves * linux-nat.h (ALL_LWPS): Remove the ptid parameter. * amd64-linux-nat.c (amd64_linux_dr_set_control) (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust. * arm-linux-nat.c (arm_linux_insert_hw_breakpoint) (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint) (arm_linux_remove_watchpoint): Adjust. * i386-linux-nat.c (i386_linux_dr_set_control) (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust. * ia64-linux-nat.c (ia64_linux_insert_watchpoint) (ia64_linux_remove_watchpoint): Adjust. * mips-linux-nat.c (write_watchpoint_regs): Adjust. * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint) (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint) (ppc_linux_insert_mask_watchpoint) (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint) (ppc_linux_remove_watchpoint): Adjust. * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Adjust. --- gdb/linux-nat.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gdb/linux-nat.h') diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h index 6175f3a..1fa94ce 100644 --- a/gdb/linux-nat.h +++ b/gdb/linux-nat.h @@ -118,12 +118,11 @@ struct lwp_info native target is active. */ extern struct lwp_info *lwp_list; -/* Iterate over the PTID each active thread (light-weight process). There - must be at least one. */ -#define ALL_LWPS(LP, PTID) \ - for ((LP) = lwp_list, (PTID) = (LP)->ptid; \ +/* Iterate over each active thread (light-weight process). */ +#define ALL_LWPS(LP) \ + for ((LP) = lwp_list; \ (LP) != NULL; \ - (LP) = (LP)->next, (PTID) = (LP) ? (LP)->ptid : (PTID)) + (LP) = (LP)->next) #define GET_LWP(ptid) ptid_get_lwp (ptid) #define GET_PID(ptid) ptid_get_pid (ptid) -- cgit v1.1