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/arm-linux-nat.c | |
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/arm-linux-nat.c')
-rw-r--r-- | gdb/arm-linux-nat.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c index f64c37c..5b0b5ce 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -1075,7 +1075,6 @@ static int arm_linux_insert_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) { - ptid_t ptid; struct lwp_info *lp; struct arm_linux_hw_breakpoint p; @@ -1083,8 +1082,8 @@ arm_linux_insert_hw_breakpoint (struct gdbarch *gdbarch, return -1; arm_linux_hw_breakpoint_initialize (gdbarch, bp_tgt, &p); - ALL_LWPS (lp, ptid) - arm_linux_insert_hw_breakpoint1 (&p, TIDGET (ptid), 0); + ALL_LWPS (lp) + arm_linux_insert_hw_breakpoint1 (&p, TIDGET (lp->ptid), 0); return 0; } @@ -1094,7 +1093,6 @@ static int arm_linux_remove_hw_breakpoint (struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) { - ptid_t ptid; struct lwp_info *lp; struct arm_linux_hw_breakpoint p; @@ -1102,8 +1100,8 @@ arm_linux_remove_hw_breakpoint (struct gdbarch *gdbarch, return -1; arm_linux_hw_breakpoint_initialize (gdbarch, bp_tgt, &p); - ALL_LWPS (lp, ptid) - arm_linux_remove_hw_breakpoint1 (&p, TIDGET (ptid), 0); + ALL_LWPS (lp) + arm_linux_remove_hw_breakpoint1 (&p, TIDGET (lp->ptid), 0); return 0; } @@ -1146,7 +1144,6 @@ static int arm_linux_insert_watchpoint (CORE_ADDR addr, int len, int rw, struct expression *cond) { - ptid_t ptid; struct lwp_info *lp; struct arm_linux_hw_breakpoint p; @@ -1154,8 +1151,8 @@ arm_linux_insert_watchpoint (CORE_ADDR addr, int len, int rw, return -1; arm_linux_hw_watchpoint_initialize (addr, len, rw, &p); - ALL_LWPS (lp, ptid) - arm_linux_insert_hw_breakpoint1 (&p, TIDGET (ptid), 1); + ALL_LWPS (lp) + arm_linux_insert_hw_breakpoint1 (&p, TIDGET (lp->ptid), 1); return 0; } @@ -1165,7 +1162,6 @@ static int arm_linux_remove_watchpoint (CORE_ADDR addr, int len, int rw, struct expression *cond) { - ptid_t ptid; struct lwp_info *lp; struct arm_linux_hw_breakpoint p; @@ -1173,8 +1169,8 @@ arm_linux_remove_watchpoint (CORE_ADDR addr, int len, int rw, return -1; arm_linux_hw_watchpoint_initialize (addr, len, rw, &p); - ALL_LWPS (lp, ptid) - arm_linux_remove_hw_breakpoint1 (&p, TIDGET (ptid), 1); + ALL_LWPS (lp) + arm_linux_remove_hw_breakpoint1 (&p, TIDGET (lp->ptid), 1); return 0; } |