Fixed comments and removed superfluous code.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31074 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-06-17 00:17:37 +00:00
parent ac8b67130a
commit e4b912a7f4
+5 -6
View File
@@ -355,7 +355,7 @@ user_debug_prepare_for_exec()
struct team *team = thread->team; struct team *team = thread->team;
// If a debugger is installed for the team and the thread debug stuff // If a debugger is installed for the team and the thread debug stuff
// initialized, changed the ownership of the debug port for the thread // initialized, change the ownership of the debug port for the thread
// to the kernel team, since exec_team() deletes all ports owned by this // to the kernel team, since exec_team() deletes all ports owned by this
// team. We change the ownership back later. // team. We change the ownership back later.
if (atomic_get(&team->debug_info.flags) & B_TEAM_DEBUG_DEBUGGER_INSTALLED) { if (atomic_get(&team->debug_info.flags) & B_TEAM_DEBUG_DEBUGGER_INSTALLED) {
@@ -458,8 +458,6 @@ thread_hit_debug_event_internal(debug_debugger_message event,
"%s\n", strerror(port)); "%s\n", strerror(port));
return port; return port;
} }
setPort = true;
} }
// check the debug info structures once more: get the debugger port, set // check the debug info structures once more: get the debugger port, set
@@ -1334,9 +1332,10 @@ user_debug_thread_scheduled(struct thread* thread)
} }
/** \brief Called by the debug nub thread of a team to broadcast a message /*! \brief Called by the debug nub thread of a team to broadcast a message to
* that are initialized for debugging (and thus have a debug port). all threads of the team that are initialized for debugging (and
*/ thus have a debug port).
*/
static void static void
broadcast_debugged_thread_message(struct thread *nubThread, int32 code, broadcast_debugged_thread_message(struct thread *nubThread, int32 code,
const void *message, int32 size) const void *message, int32 size)