diff options
Diffstat (limited to 'gdb/mips-linux-nat.c')
-rw-r--r-- | gdb/mips-linux-nat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index 2b90113..2602e2d 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -871,12 +871,11 @@ static int write_watchpoint_regs (void) { struct lwp_info *lp; - ptid_t ptid; int tid; - ALL_LWPS (lp, ptid) + ALL_LWPS (lp) { - tid = ptid_get_lwp (ptid); + tid = ptid_get_lwp (lp->ptid); if (ptrace (PTRACE_SET_WATCH_REGS, tid, &watch_mirror) == -1) perror_with_name (_("Couldn't write debug register")); } |