Added new debugger message B_DEBUGGER_MESSAGE_TEAM_EXEC, sent when

exec*() has been called.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27650 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-09-20 13:59:41 +00:00
parent 78b13af677
commit 4ed8088f9a
4 changed files with 31 additions and 0 deletions
+20
View File
@@ -884,6 +884,26 @@ user_debug_team_deleted(team_id teamID, port_id debuggerPort)
}
void
user_debug_team_exec()
{
// check, if a debugger is installed and is interested in team creation
// events
struct thread *thread = thread_get_current_thread();
int32 teamDebugFlags = atomic_get(&thread->team->debug_info.flags);
if (~teamDebugFlags
& (B_TEAM_DEBUG_DEBUGGER_INSTALLED | B_TEAM_DEBUG_TEAM_CREATION)) {
return;
}
// prepare the message
debug_team_created message;
thread_hit_debug_event(B_DEBUGGER_MESSAGE_TEAM_EXEC, &message,
sizeof(message), true);
}
void
user_debug_update_new_thread_flags(thread_id threadID)
{