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.
This commit is contained in:
parent
b7ff339d9e
commit
4c38200f7d
9 changed files with 75 additions and 76 deletions
|
@ -319,11 +319,10 @@ static void
|
|||
amd64_linux_dr_set_control (unsigned long control)
|
||||
{
|
||||
struct lwp_info *lp;
|
||||
ptid_t ptid;
|
||||
|
||||
amd64_linux_dr[DR_CONTROL] = control;
|
||||
ALL_LWPS (lp, ptid)
|
||||
amd64_linux_dr_set (ptid, DR_CONTROL, control);
|
||||
ALL_LWPS (lp)
|
||||
amd64_linux_dr_set (lp->ptid, DR_CONTROL, control);
|
||||
}
|
||||
|
||||
/* Set address REGNUM (zero based) to ADDR in all LWPs of LWP_LIST. */
|
||||
|
@ -332,13 +331,12 @@ static void
|
|||
amd64_linux_dr_set_addr (int regnum, CORE_ADDR addr)
|
||||
{
|
||||
struct lwp_info *lp;
|
||||
ptid_t ptid;
|
||||
|
||||
gdb_assert (regnum >= 0 && regnum <= DR_LASTADDR - DR_FIRSTADDR);
|
||||
|
||||
amd64_linux_dr[DR_FIRSTADDR + regnum] = addr;
|
||||
ALL_LWPS (lp, ptid)
|
||||
amd64_linux_dr_set (ptid, DR_FIRSTADDR + regnum, addr);
|
||||
ALL_LWPS (lp)
|
||||
amd64_linux_dr_set (lp->ptid, DR_FIRSTADDR + regnum, addr);
|
||||
}
|
||||
|
||||
/* Set address REGNUM (zero based) to zero in all LWPs of LWP_LIST. */
|
||||
|
@ -363,15 +361,14 @@ static void
|
|||
amd64_linux_dr_unset_status (unsigned long mask)
|
||||
{
|
||||
struct lwp_info *lp;
|
||||
ptid_t ptid;
|
||||
|
||||
ALL_LWPS (lp, ptid)
|
||||
ALL_LWPS (lp)
|
||||
{
|
||||
unsigned long value;
|
||||
|
||||
value = amd64_linux_dr_get (ptid, DR_STATUS);
|
||||
value = amd64_linux_dr_get (lp->ptid, DR_STATUS);
|
||||
value &= ~mask;
|
||||
amd64_linux_dr_set (ptid, DR_STATUS, value);
|
||||
amd64_linux_dr_set (lp->ptid, DR_STATUS, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue