Lines Matching defs:thread

22 #include <thread.h>
71 lookup_symbol(Thread* thread, addr_t address, addr_t* _baseAddress,
80 } else if (thread != NULL && thread->team != NULL) {
82 status = elf_debug_lookup_user_symbol_address(thread->team, address,
87 status = image_debug_lookup_user_symbol_address(thread->team,
285 print_stack_frame(Thread *thread, addr_t ip, addr_t fp, addr_t next,
301 status = lookup_symbol(thread, ip, &baseAddress, &symbol, &image,
324 if (thread != NULL && thread->team != NULL
325 && thread->team->address_space != NULL) {
326 area = thread->team->address_space->LookupArea(ip);
339 static const char* usage = "usage: %s [-d] [ <thread id> ]\n"
341 "thread.\n"
343 " <thread id> - The ID of the thread for which to print the stack\n"
359 Thread* thread = thread_get_current_thread();
365 // We don't have a thread pointer early in the boot process
366 if (thread != NULL)
367 frameStack = &thread->arch_info.iframes;
377 if (thread != NULL) {
378 kprintf("stack trace for thread 0x%" B_PRIx32 " \"%s\"\n", thread->id,
379 thread->name);
382 (void *)thread->kernel_stack_base,
383 (void *)(thread->kernel_stack_top));
384 if (thread->user_stack_base != 0) {
386 (void *)thread->user_stack_base,
387 (void *)(thread->user_stack_base + thread->user_stack_size));
417 print_stack_frame(thread, frame->pc, fp, frame->r11, callIndex, demangle);
430 print_stack_frame(thread, ip, fp, next, callIndex, demangle);
456 arch_debug_contains_call(Thread *thread, const char *symbol,
516 add_debugger_command("sc", &stack_trace, "Stack crawl for current thread");