Lines Matching refs:tid
153 int tid; in fetch_inferior_registers() local
156 tid = TIDGET (inferior_ptid); in fetch_inferior_registers()
157 if (tid == 0) in fetch_inferior_registers()
158 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in fetch_inferior_registers()
164 if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0) in fetch_inferior_registers()
176 if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0) in fetch_inferior_registers()
190 int tid; in store_inferior_registers() local
193 tid = TIDGET (inferior_ptid); in store_inferior_registers()
194 if (tid == 0) in store_inferior_registers()
195 tid = PIDGET (inferior_ptid); /* Not a threaded program. */ in store_inferior_registers()
201 if (ptrace (PTRACE_GETREGS, tid, 0, (long) ®s) < 0) in store_inferior_registers()
206 if (ptrace (PTRACE_SETREGS, tid, 0, (long) ®s) < 0) in store_inferior_registers()
217 if (ptrace (PTRACE_GETFPREGS, tid, 0, (long) &fpregs) < 0) in store_inferior_registers()
222 if (ptrace (PTRACE_SETFPREGS, tid, 0, (long) &fpregs) < 0) in store_inferior_registers()
233 int tid; in amd64_linux_dr_get() local
239 tid = PIDGET (inferior_ptid); in amd64_linux_dr_get()
247 value = ptrace (PT_READ_U, tid, in amd64_linux_dr_get()
262 int tid; in amd64_linux_dr_set() local
267 tid = PIDGET (inferior_ptid); in amd64_linux_dr_set()
270 ptrace (PT_WRITE_U, tid, offsetof (struct user, u_debugreg[regnum]), value); in amd64_linux_dr_set()