Lines Matching defs:th

238   thread_info *th;
240 for (th = &thread_head; (th = th->next) != NULL;)
241 if (th->id == id)
243 if (!th->suspend_count && get_context)
246 th->suspend_count = SuspendThread (th->h) + 1;
248 th->suspend_count = -1;
249 th->reload_context = 1;
251 return th;
261 thread_info *th;
263 if ((th = thread_rec (id, FALSE)))
264 return th;
266 th = (thread_info *) xmalloc (sizeof (*th));
267 memset (th, 0, sizeof (*th));
268 th->id = id;
269 th->h = h;
270 th->next = thread_head.next;
271 thread_head.next = th;
277 th->context.ContextFlags = CONTEXT_DEBUG_REGISTERS;
278 CHECK (GetThreadContext (th->h, &th->context));
279 th->context.Dr0 = dr[0];
280 th->context.Dr1 = dr[1];
281 th->context.Dr2 = dr[2];
282 th->context.Dr3 = dr[3];
283 /* th->context.Dr6 = dr[6];
285 th->context.Dr7 = dr[7];
286 CHECK (SetThreadContext (th->h, &th->context));
287 th->context.ContextFlags = 0;
289 return th;
297 thread_info *th = &thread_head;
301 while (th->next != NULL)
303 thread_info *here = th->next;
304 th->next = here->next;
314 thread_info *th;
320 for (th = &thread_head;
321 th->next != NULL && th->next->id != id;
322 th = th->next)
325 if (th->next != NULL)
327 thread_info *here = th->next;
328 th->next = here->next;
346 thread_info *th = current_thread;
347 th->context.ContextFlags = CONTEXT_DEBUGGER_DR;
348 GetThreadContext (th->h, &th->context);
350 dr[0] = th->context.Dr0;
351 dr[1] = th->context.Dr1;
352 dr[2] = th->context.Dr2;
353 dr[3] = th->context.Dr3;
354 dr[6] = th->context.Dr6;
355 dr[7] = th->context.Dr7;
1070 thread_info *th;
1076 th = thread_rec (current_event.dwThreadId, -1);
1176 thread_info *th;
1188 for (th = &thread_head; (th = th->next) != NULL;)
1189 if (((id == -1) || (id == (int) th->id)) && th->suspend_count)
1192 for (i = 0; i < th->suspend_count; i++)
1193 (void) ResumeThread (th->h);
1194 th->suspend_count = 0;
1198 th->context.ContextFlags = CONTEXT_DEBUG_REGISTERS;
1199 th->context.Dr0 = dr[0];
1200 th->context.Dr1 = dr[1];
1201 th->context.Dr2 = dr[2];
1202 th->context.Dr3 = dr[3];
1203 /* th->context.Dr6 = dr[6];
1205 th->context.Dr7 = dr[7];
1206 CHECK (SetThreadContext (th->h, &th->context));
1207 th->context.ContextFlags = 0;
1236 thread_info *th;
1250 th = NULL;
1272 th = child_add_thread (current_event.dwThreadId,
1289 th = &dummy_thread_info;
1310 th = child_add_thread (main_thread_id,
1395 current_thread = th ?: thread_rec (current_event.dwThreadId, TRUE);
1945 thread_info *th;
1990 th = thread_rec (current_event.dwThreadId, FALSE);
1991 if (th)
1997 th->context.EFlags |= FLAG_TRACE_BIT;
2000 if (th->context.ContextFlags)
2004 th->context.Dr0 = dr[0];
2005 th->context.Dr1 = dr[1];
2006 th->context.Dr2 = dr[2];
2007 th->context.Dr3 = dr[3];
2008 /* th->context.Dr6 = dr[6];
2010 th->context.Dr7 = dr[7];
2012 CHECK (SetThreadContext (th->h, &th->context));
2013 th->context.ContextFlags = 0;
2156 /* Pass the address ADDR to the inferior in the I'th debug register.