From ebe5949e61c6e5a016dde07b8a6c25ab714d15ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 22 Dec 2005 00:40:34 +0000 Subject: [PATCH] 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 --- src/system/kernel/vm/vm.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp index f91072f823..09864a4c07 100644 --- a/src/system/kernel/vm/vm.cpp +++ b/src/system/kernel/vm/vm.cpp @@ -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); }