Added debugger notifications for team creation/deletion events.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11476 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
43ad09219b
commit
2ee487c82a
@ -8,7 +8,6 @@
|
||||
|
||||
/* Team functions */
|
||||
|
||||
#include <debugger.h>
|
||||
#include <OS.h>
|
||||
|
||||
#include <team.h>
|
||||
@ -798,13 +797,7 @@ team_delete_team(struct team *team)
|
||||
free(team);
|
||||
|
||||
// notify the debugger, that the team is gone
|
||||
if (debuggerPort >= 0) {
|
||||
debug_team_deleted message;
|
||||
message.team = teamID;
|
||||
write_port_etc(debuggerPort, B_DEBUGGER_MESSAGE_TEAM_DELETED, &message,
|
||||
sizeof(message), B_RELATIVE_TIMEOUT, 0);
|
||||
// ToDo: Would it be OK to wait here?
|
||||
}
|
||||
user_debug_team_deleted(teamID, debuggerPort);
|
||||
}
|
||||
|
||||
|
||||
@ -1051,6 +1044,9 @@ load_image_etc(int32 argCount, char **args, int32 envCount, char **env, int32 pr
|
||||
goto err4;
|
||||
}
|
||||
|
||||
// notify the debugger
|
||||
user_debug_team_created(team->id);
|
||||
|
||||
return thread;
|
||||
|
||||
err4:
|
||||
@ -1270,6 +1266,9 @@ fork_team(void)
|
||||
goto err4;
|
||||
}
|
||||
|
||||
// notify the debugger
|
||||
user_debug_team_created(team->id);
|
||||
|
||||
resume_thread(threadID);
|
||||
return threadID;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user