add: gdbThreadInfo = add_thread(ptid_build(teamDebugInfo->team, 0, threadID));         TRACE(("haiku_add_thread(): team %ld thread %ld added: " "gdb thread info: %p\n", teamDebugInfo->team, threadID, gdbThreadInfo));
context: haiku_add_thread(team_debug_info *teamDebugInfo, thread_id threadID){	// find the thread first	thread_debug_info *threadDebugInfo		=  haiku_find_thread(teamDebugInfo, threadID);	if (threadDebugInfo)		return threadDebugInfo;	// allocate a new thread debug info	threadDebugInfo = XMALLOC(thread_debug_info);	if (!threadDebugInfo)		error("haiku_thread_added(): Out of memory!\n");	// init and add it	threadDebugInfo->thread = threadID;	threadDebugInfo->next = teamDebugInfo->threads;	threadDebugInfo->stopped = false;	threadDebugInfo->last_event = NULL;	teamDebugInfo->threads = threadDebugInfo;	return threadDebugInfo;}