Add GetTeamInfo() call to DebuggerInterface.

- Abstracts out retrieving team information, since this may need to be
  done differently depending on the interface type.
This commit is contained in:
Rene Gollent
2013-04-25 18:54:58 -04:00
parent aecef63c52
commit 2a5d40cbe9
2 changed files with 16 additions and 0 deletions
@@ -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<ThreadInfo>& infos)
{
@@ -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<ThreadInfo>& infos);
virtual status_t GetImageInfos(BObjectList<ImageInfo>& infos);
virtual status_t GetAreaInfos(BObjectList<AreaInfo>& infos);