From 09418c869bf79427b822ebf0f11b14938ec8154b Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 13 Apr 2010 17:16:42 +0000 Subject: [PATCH] Added DebugGet() method for use in the kernel debugger. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36227 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/vm/VMAddressSpace.h | 1 + src/system/kernel/vm/VMAddressSpace.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/headers/private/kernel/vm/VMAddressSpace.h b/headers/private/kernel/vm/VMAddressSpace.h index 646b9e1d66..d373d80f51 100644 --- a/headers/private/kernel/vm/VMAddressSpace.h +++ b/headers/private/kernel/vm/VMAddressSpace.h @@ -115,6 +115,7 @@ public: static VMAddressSpace* DebugFirst(); static VMAddressSpace* DebugNext(VMAddressSpace* addressSpace); + static VMAddressSpace* DebugGet(team_id teamID); protected: static void _DeleteIfUnreferenced(team_id id); diff --git a/src/system/kernel/vm/VMAddressSpace.cpp b/src/system/kernel/vm/VMAddressSpace.cpp index 3e7831fe82..2db501af3e 100644 --- a/src/system/kernel/vm/VMAddressSpace.cpp +++ b/src/system/kernel/vm/VMAddressSpace.cpp @@ -297,6 +297,13 @@ VMAddressSpace::DebugNext(VMAddressSpace* addressSpace) } +/*static*/ VMAddressSpace* +VMAddressSpace::DebugGet(team_id teamID) +{ + return sAddressSpaceTable.Lookup(teamID); +} + + /*static*/ void VMAddressSpace::_DeleteIfUnreferenced(team_id id) {