Now checks if the address space pointer is NULL before dereferencing it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19905 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-01-22 16:57:47 +00:00
parent 2781a652ae
commit 4108d5de80
+3 -1
View File
@@ -104,7 +104,9 @@ print_stack_frame(struct thread *thread, addr_t eip, addr_t ebp, addr_t nextEbp)
(void *)baseAddress, eip - baseAddress);
}
} else {
vm_area *area = vm_area_lookup(thread->team->address_space, eip);
vm_area *area = NULL;
if (thread->team->address_space != NULL)
area = vm_area_lookup(thread->team->address_space, eip);
if (area != NULL) {
kprintf(" %ld:%s@%p + %#lx\n", area->id, area->name, (void *)area->base,
eip - area->base);