The debugger command "areas" can now restrict the list by team ID.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15650 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-12-22 00:40:34 +00:00
parent c1b5724035
commit ebe5949e61
1 changed files with 8 additions and 1 deletions

View File

@ -1902,11 +1902,18 @@ dump_area_list(int argc, char **argv)
{
vm_area *area;
struct hash_iterator iter;
int32 id = -1;
kprintf("addr\t id base\t\tsize\t\tprotect\tlock\tname\n");
if (argc > 1)
id = strtoul(argv[1], NULL, 0);
kprintf("addr id base\t\tsize\t\tprotect\tlock\tname\n");
hash_open(sAreaHash, &iter);
while ((area = (vm_area *)hash_next(sAreaHash, &iter)) != NULL) {
if (id != -1 && area->address_space->id != id)
continue;
kprintf("%p %5lx %p\t%p\t%ld\t%d\t%s\n", area, area->id, (void *)area->base,
(void *)area->size, area->protection, area->wiring, area->name);
}