Lines Matching defs:team

72 	"                   profile all teams created by a profiled team.\n"
124 for (int32 i = 0; Team* team = fTeams.ItemAt(i); i++)
125 team->ReleaseReference();
155 return _AddTeam(addedInfo->team, addedInfo, _team);
165 return AddThread(threadInfo.team, threadID, threadInfo.name);
173 Team* team = FindTeam(teamID);
174 if (team == NULL)
177 Thread* thread = new(std::nothrow) Thread(threadID, name, team);
187 error = team->InitThread(thread);
199 if (Team* team = FindTeam(teamID)) {
200 if (team == fKernelTeam)
202 fTeams.RemoveItem(team);
203 team->ReleaseReference();
217 for (int32 i = 0; Team* team = fTeams.ItemAt(i); i++) {
218 if (team->ID() == teamID)
219 return team;
260 // a userland team image -- add it to that image
261 if (Team* team = FindTeam(teamID))
262 return team->AddImage(sharedImage, imageInfo, teamID, event);
275 // a userland team image -- add it to that image
276 if (Team* team = FindTeam(teamID))
277 team->RemoveImage(imageID, event);
310 Team* team = new(std::nothrow) Team;
311 if (team == NULL)
315 ? _InitUndebuggedTeam(team, addedInfo)
316 : _InitDebuggedTeam(team, teamID);
318 team->ReleaseReference();
322 fTeams.AddItem(team);
325 fKernelTeam = team;
328 *_team = team;
333 status_t _InitDebuggedTeam(Team* team, team_id teamID)
335 // init the team
336 status_t error = team->Init(teamID, fDebuggerPort);
340 // add the team's images
341 error = _LoadTeamImages(team, teamID);
346 return _LoadTeamImages(team, B_SYSTEM_TEAM);
349 status_t _InitUndebuggedTeam(Team* team,
352 // init the team
353 status_t error = team->Init(addedInfo);
357 // in case of a user team, add the kernel images
358 if (team->ID() == B_SYSTEM_TEAM || fKernelTeam == NULL)
365 team->AddImage(sharedImage, sharedImage->Info(), B_SYSTEM_TEAM, 0);
371 status_t _LoadTeamImages(Team* team, team_id teamID)
373 // iterate through the team's images and collect the symbols
383 // add the image to the team
384 error = team->AddImage(sharedImage, imageInfo, teamID, 0);
556 threadManager.RemoveTeam(event->team);
558 // quit, if the main team we're interested in is gone
559 if (mainTeam >= 0 && event->team == mainTeam)
570 if (Team* team = threadManager.FindTeam(event->team))
571 team->Exec(0, event->args, event->thread_name);
580 if (threadManager.AddThread(event->team, event->thread,
604 threadManager.AddImage(event->team, event->info, 0);
613 threadManager.RemoveImage(event->team, event->image, 0);
721 // resume the loaded team, if we have one
848 // get thread/team to be debugged
857 // get the team ID
866 team_id teamID = threadInfo.team;
876 // add team and thread to the thread manager
938 // a debugged team is gone -- quit, if it is our team
939 threadManager.RemoveTeam(message.origin.team);
940 quitLoop = message.origin.team == teamID;
943 if (Team* team = threadManager.FindTeam(message.origin.team)) {
946 if (get_team_info(message.origin.team, &teamInfo) == B_OK
947 && get_thread_info(message.origin.team, &threadInfo)
949 team->Exec(message.team_exec.image_event, teamInfo.args,
966 threadManager.AddImage(message.origin.team,
971 threadManager.RemoveImage(message.origin.team,