We don't get a separate B_DEBUGGER_MESSAGE_THREAD_CREATED message after
a B_DEBUGGER_MESSAGE_TEAM_CREATED, so we have to immediately start profiling the main thread. Profiling child processes basically works now, but since we still don't track image creation/deletion, the results aren't correct yet (that is library symbols might keep the same addresses). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27608 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eb333098fe
commit
2f5c4a90d8
@ -612,7 +612,10 @@ main(int argc, const char* const* argv)
|
||||
}
|
||||
|
||||
case B_DEBUGGER_MESSAGE_TEAM_CREATED:
|
||||
threadManager.AddTeam(message->team_created.new_team);
|
||||
if (threadManager.AddTeam(message->team_created.new_team)
|
||||
== B_OK) {
|
||||
threadManager.AddThread(message->team_created.new_team);
|
||||
}
|
||||
break;
|
||||
case B_DEBUGGER_MESSAGE_TEAM_DELETED:
|
||||
// a debugged team is gone -- quit, if it is our team
|
||||
|
Loading…
Reference in New Issue
Block a user