diff options
author | Pedro Alves <palves@redhat.com> | 2011-10-07 17:15:15 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-10-07 17:15:15 +0000 |
commit | 4c38200f7dda423c701d01639596df606b96433c (patch) | |
tree | e057fcf2b7f60fe320e546b5d8868de5eec50ec7 /gdb/linux-nat.h | |
parent | b7ff339d9ed68980660d58409c226d6d9b83e70e (diff) | |
download | gdb-4c38200f7dda423c701d01639596df606b96433c.zip gdb-4c38200f7dda423c701d01639596df606b96433c.tar.gz gdb-4c38200f7dda423c701d01639596df606b96433c.tar.bz2 |
2011-10-07 Pedro Alves <pedro@codesourcery.com>
* 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.
Diffstat (limited to 'gdb/linux-nat.h')
-rw-r--r-- | gdb/linux-nat.h | 9 |
1 files changed, 4 insertions, 5 deletions
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) |