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:
@@ -29,6 +29,7 @@
|
|||||||
#include "SemaphoreInfo.h"
|
#include "SemaphoreInfo.h"
|
||||||
#include "SymbolInfo.h"
|
#include "SymbolInfo.h"
|
||||||
#include "SystemInfo.h"
|
#include "SystemInfo.h"
|
||||||
|
#include "TeamInfo.h"
|
||||||
#include "ThreadInfo.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
|
status_t
|
||||||
DebuggerInterface::GetThreadInfos(BObjectList<ThreadInfo>& infos)
|
DebuggerInterface::GetThreadInfos(BObjectList<ThreadInfo>& infos)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ class ImageInfo;
|
|||||||
class SemaphoreInfo;
|
class SemaphoreInfo;
|
||||||
class SymbolInfo;
|
class SymbolInfo;
|
||||||
class SystemInfo;
|
class SystemInfo;
|
||||||
|
class TeamInfo;
|
||||||
class ThreadInfo;
|
class ThreadInfo;
|
||||||
|
|
||||||
namespace BPrivate {
|
namespace BPrivate {
|
||||||
@@ -56,6 +57,7 @@ public:
|
|||||||
virtual status_t UninstallWatchpoint(target_addr_t address);
|
virtual status_t UninstallWatchpoint(target_addr_t address);
|
||||||
|
|
||||||
virtual status_t GetSystemInfo(SystemInfo& info);
|
virtual status_t GetSystemInfo(SystemInfo& info);
|
||||||
|
virtual status_t GetTeamInfo(TeamInfo& info);
|
||||||
virtual status_t GetThreadInfos(BObjectList<ThreadInfo>& infos);
|
virtual status_t GetThreadInfos(BObjectList<ThreadInfo>& infos);
|
||||||
virtual status_t GetImageInfos(BObjectList<ImageInfo>& infos);
|
virtual status_t GetImageInfos(BObjectList<ImageInfo>& infos);
|
||||||
virtual status_t GetAreaInfos(BObjectList<AreaInfo>& infos);
|
virtual status_t GetAreaInfos(BObjectList<AreaInfo>& infos);
|
||||||
|
|||||||
Reference in New Issue
Block a user