rem: if (which == 0) fTeamHandler->EnterDebugger(); else fTeamHandler->KillTeam();
add: team_id team = message->Data().origin.team; TeamDebugHandlerMap::iterator it = fTeamDebugHandlers.find(team); TeamDebugHandler *handler; if (it == fTeamDebugHandlers.end()) { handler = new TeamDebugHandler(this, team); fTeamDebugHandlers[team] = handler; } else handler = it->second;   if (handler->HandleMessage(message)) _DeleteTeamDebugHandler(handler);  delete message; } } else { #if USE_BE_APPLICATION BApplication::MessageReceived(message); #else BLooper::MessageReceived(message); #endif
context: ThreadDebugHandler::MessageReceived(BMessage *message){	if (message->what == ALERT_MESSAGE) {printf("debug_server: ALERT_MESSAGE received for thread %ld\n", fThread);		int32 which;		if (message->FindInt32("which", &which) != B_OK)			which = 1;		if (which == 0)			fTeamHandler->EnterDebugger();		else			fTeamHandler->KillTeam();	}}