Lines Matching refs:th
40 i386_get_thread_context (win32_thread_info *th, DEBUG_EVENT* current_event)
42 th->context.ContextFlags = \
48 GetThreadContext (th->h, &th->context);
52 if (th->tid == current_event->dwThreadId)
55 dr[0] = th->context.Dr0;
56 dr[1] = th->context.Dr1;
57 dr[2] = th->context.Dr2;
58 dr[3] = th->context.Dr3;
59 dr[6] = th->context.Dr6;
60 dr[7] = th->context.Dr7;
65 i386_set_thread_context (win32_thread_info *th, DEBUG_EVENT* current_event)
69 th->context.Dr0 = dr[0];
70 th->context.Dr1 = dr[1];
71 th->context.Dr2 = dr[2];
72 th->context.Dr3 = dr[3];
73 /* th->context.Dr6 = dr[6];
75 th->context.Dr7 = dr[7];
78 SetThreadContext (th->h, &th->context);
82 i386_thread_added (win32_thread_info *th)
87 th->context.ContextFlags = CONTEXT_DEBUG_REGISTERS;
88 GetThreadContext (th->h, &th->context);
90 th->context.Dr0 = dr[0];
91 th->context.Dr1 = dr[1];
92 th->context.Dr2 = dr[2];
93 th->context.Dr3 = dr[3];
94 /* th->context.Dr6 = dr[6];
96 th->context.Dr7 = dr[7];
98 SetThreadContext (th->h, &th->context);
99 th->context.ContextFlags = 0;
104 i386_single_step (win32_thread_info *th)
106 th->context.EFlags |= FLAG_TRACE_BIT;
166 i386_fetch_inferior_register (win32_thread_info *th, int r)
168 char *context_offset = (char *) &th->context + mappings[r];
187 i386_store_inferior_register (win32_thread_info *th, int r)
189 char *context_offset = (char *) &th->context + mappings[r];