diff --git a/src/apps/debugger/debugger_interface/DebuggerInterface.cpp b/src/apps/debugger/debugger_interface/DebuggerInterface.cpp index 641d9dc8d6..f1931fe9b5 100644 --- a/src/apps/debugger/debugger_interface/DebuggerInterface.cpp +++ b/src/apps/debugger/debugger_interface/DebuggerInterface.cpp @@ -29,6 +29,7 @@ #include "SemaphoreInfo.h" #include "SymbolInfo.h" #include "SystemInfo.h" +#include "TeamInfo.h" #include "ThreadInfo.h" @@ -482,6 +483,19 @@ DebuggerInterface::GetSystemInfo(SystemInfo& info) } +status_t +DebuggerInterface::GetTeamInfo(TeamInfo& info) +{ + team_info teamInfo; + status_t result = get_team_info(fTeamID, &teamInfo); + if (result != B_OK) + return result; + + info.SetTo(fTeamID, teamInfo); + return B_OK; +} + + status_t DebuggerInterface::GetThreadInfos(BObjectList& infos) { diff --git a/src/apps/debugger/debugger_interface/DebuggerInterface.h b/src/apps/debugger/debugger_interface/DebuggerInterface.h index f726074da5..39d655c818 100644 --- a/src/apps/debugger/debugger_interface/DebuggerInterface.h +++ b/src/apps/debugger/debugger_interface/DebuggerInterface.h @@ -22,6 +22,7 @@ class ImageInfo; class SemaphoreInfo; class SymbolInfo; class SystemInfo; +class TeamInfo; class ThreadInfo; namespace BPrivate { @@ -56,6 +57,7 @@ public: virtual status_t UninstallWatchpoint(target_addr_t address); virtual status_t GetSystemInfo(SystemInfo& info); + virtual status_t GetTeamInfo(TeamInfo& info); virtual status_t GetThreadInfos(BObjectList& infos); virtual status_t GetImageInfos(BObjectList& infos); virtual status_t GetAreaInfos(BObjectList& infos);