Dumping semaphore info in the kernel debugger will now print the whole queue

of waiting threads by ID (instead of just the queue head and tail pointers).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18688 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-08-29 11:05:22 +00:00
parent 2bd9d1e3d8
commit 022567d3a0

View File

@ -150,8 +150,16 @@ dump_sem(struct sem_entry *sem)
kprintf("name: '%s'\n", sem->u.used.name);
kprintf("owner: 0x%lx\n", sem->u.used.owner);
kprintf("count: 0x%lx\n", sem->u.used.count);
kprintf("queue: head %p tail %p\n", sem->u.used.queue.head,
sem->u.used.queue.tail);
kprintf("queue: ");
if (sem->u.used.queue.head != NULL) {
struct thread *thread = sem->u.used.queue.head;
while (thread != NULL) {
kprintf(" %lx", thread->id);
thread = thread->queue_next;
}
kprintf("\n");
} else
kprintf(" -\n");
#ifdef DEBUG_LAST_ACQUIRER
kprintf("last acquired by: 0x%lx\n", sem->u.used.last_acquirer);
#endif