Resolve TODO: get team information via DebuggerInterface.

This commit is contained in:
Rene Gollent
2013-04-25 18:54:59 -04:00
parent 2a5d40cbe9
commit 3e9e1e11b2
@@ -1,6 +1,6 @@
/*
* Copyright 2009-2012, Ingo Weinhold, [email protected].
* Copyright 2010-2011, Rene Gollent, [email protected].
* Copyright 2010-2013, Rene Gollent, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -39,6 +39,7 @@
#include "Statement.h"
#include "SymbolInfo.h"
#include "TeamDebugInfo.h"
#include "TeamInfo.h"
#include "TeamMemoryBlock.h"
#include "TeamMemoryBlockManager.h"
#include "TeamSettings.h"
@@ -338,9 +339,8 @@ TeamDebugger::Init(team_id teamID, thread_id threadID, bool stopInMain)
return error;
// check whether the team exists at all
// TODO: That should be done in the debugger interface!
team_info teamInfo;
error = get_team_info(fTeamID, &teamInfo);
TeamInfo teamInfo;
error = fDebuggerInterface->GetTeamInfo(teamInfo);
if (error != B_OK)
return error;
@@ -354,7 +354,7 @@ TeamDebugger::Init(team_id teamID, thread_id threadID, bool stopInMain)
error = fTeam->Init();
if (error != B_OK)
return error;
fTeam->SetName(teamInfo.args);
fTeam->SetName(teamInfo.Arguments());
// TODO: Set a better name!
fTeam->AddListener(this);