Lines Matching refs:th

800 undoSStep (thread_info * th)
802 if (th->stepped)
804 memory_remove_breakpoint (th->step_pc, (void *) &th->step_prev);
805 th->stepped = 0;
814 thread_info *th = current_thread; /* Info on currently selected thread */
819 undoSStep (th);
823 th->stepped = 1;
825 th->step_pc = mips_next_pc (pc);
826 th->step_prev = 0;
827 memory_insert_breakpoint (th->step_pc, (void *) &th->step_prev);
936 undoSStep (thread_info * th)
938 if (th->stepped)
940 memory_remove_breakpoint (th->step_pc, (void *) &th->step_prev);
941 th->stepped = 0;
954 thread_info *th = current_thread; /* Info on currently selected thread */
958 undoSStep (th);
962 th->stepped = 1;
963 th->step_pc = sh_get_next_pc (&th->context);
964 th->step_prev = 0;
965 memory_insert_breakpoint (th->step_pc, (void *) &th->step_prev);
974 thread_info *th = thread_rec (ev->dwThreadId, 1);
976 if (th->stepped &&
977 th->step_pc == (CORE_ADDR) ev->u.Exception.ExceptionRecord.ExceptionAddress)
988 undoSStep (thread_info * th)
990 if (th->stepped)
992 memory_remove_breakpoint (th->step_pc, (void *) &th->step_prev);
993 th->stepped = 0;
1002 thread_info *th = current_thread; /* Info on currently selected thread */
1007 undoSStep (th);
1011 th->stepped = 1;
1013 th->step_pc = arm_get_next_pc (pc);
1014 th->step_prev = 0;
1015 memory_insert_breakpoint (th->step_pc, (void *) &th->step_prev);
1026 thread_info *th;
1028 for (th = &thread_head; (th = th->next) != NULL;)
1029 if (th->id == id)
1031 if (!th->suspend_count && get_context)
1033 if (get_context > 0 && th != this_thread)
1034 th->suspend_count = suspend_thread (th->h) + 1;
1036 th->suspend_count = -1;
1038 th->context.ContextFlags = CONTEXT_DEBUGGER;
1039 get_thread_context (th->h, &th->context);
1041 return th;
1051 thread_info *th;
1053 if ((th = thread_rec (id, FALSE)))
1054 return th;
1056 th = (thread_info *) xmalloc (sizeof (*th));
1057 memset (th, 0, sizeof (*th));
1058 th->id = id;
1059 th->h = h;
1060 th->next = thread_head.next;
1061 thread_head.next = th;
1063 return th;
1071 thread_info *th = &thread_head;
1075 while (th->next != NULL)
1077 thread_info *here = th->next;
1078 th->next = here->next;
1088 thread_info *th;
1094 for (th = &thread_head;
1095 th->next != NULL && th->next->id != id;
1096 th = th->next)
1099 if (th->next != NULL)
1101 thread_info *here = th->next;
1102 th->next = here->next;
1337 thread_info *th;
1346 for (th = &thread_head; (th = th->next) != NULL;)
1347 if (((id == -1) || (id == th->id)) && th->suspend_count)
1349 for (i = 0; i < th->suspend_count; i++)
1350 (void) resume_thread (th->h);
1351 th->suspend_count = 0;
1367 thread_info *th = NULL;
1391 th = child_add_thread (current_event.dwThreadId,
1404 th = &dummy_thread_info;
1417 th = child_add_thread (PIDGET (inferior_ptid),
1480 this_thread = current_thread = th ?: thread_rec (current_event.dwThreadId, TRUE);
1836 thread_info *th;
1845 th = thread_rec (current_event.dwThreadId, FALSE);
1847 if (th->context.ContextFlags)
1849 CHECK (set_thread_context (th->h, &th->context));
1850 th->context.ContextFlags = 0;