Lines Matching refs:thread

19 #include <thread.h>
82 print_stack_frame(Thread *thread, addr_t ip, addr_t framePointer,
97 if (status != B_OK && !IS_KERNEL_ADDRESS(ip) && thread) {
99 status = image_debug_lookup_user_symbol_address(thread->team, ip,
122 Thread *thread;
127 thread = thread_get_current_thread();
132 thread = Thread::GetDebug(id);
133 if (thread == NULL) {
134 kprintf("could not find thread %ld\n", id);
138 // read %ebp from the thread's stack stored by a pushad
139 ebp = thread->arch_info.current_stack.esp[2];
142 // switch to the page directory of the new thread to be
145 thread_get_current_thread(), thread);
157 // We don't have a thread pointer early in the boot process
158 if (thread != NULL)
159 frameStack = &thread->arch_info.iframes;
168 if (thread != NULL) {
169 kprintf("stack trace for thread 0x%lx \"%s\"\n", thread->id,
170 thread->name);
173 (void *)thread->kernel_stack_base,
174 (void *)(thread->kernel_stack_top));
175 if (thread->user_stack_base != 0) {
177 (void *)thread->user_stack_base,
178 (void *)(thread->user_stack_base + thread->user_stack_size));
213 print_stack_frame(thread, frame->cpu.pc, framePointer, frame->a[6]);
226 print_stack_frame(thread, ip, framePointer, nextFramePointer);
265 arch_debug_contains_call(Thread *thread, const char *symbol,
286 Thread* thread = thread_get_current_thread();
290 // We don't have a thread pointer early in the boot process
291 if (thread != NULL)
292 frameStack = &thread->arch_info.iframes;
402 add_debugger_command("sc", &stack_trace, "Stack crawl for current thread");