[Haiku-commits] r31074 - haiku/trunk/src/system/kernel/debug

bonefish at mail.berlios.de bonefish at mail.berlios.de
Wed Jun 17 02:17:40 CEST 2009


Author: bonefish
Date: 2009-06-17 02:17:37 +0200 (Wed, 17 Jun 2009)
New Revision: 31074
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31074&view=rev

Modified:
   haiku/trunk/src/system/kernel/debug/user_debugger.cpp
Log:
Fixed comments and removed superfluous code.


Modified: haiku/trunk/src/system/kernel/debug/user_debugger.cpp
===================================================================
--- haiku/trunk/src/system/kernel/debug/user_debugger.cpp	2009-06-16 21:47:49 UTC (rev 31073)
+++ haiku/trunk/src/system/kernel/debug/user_debugger.cpp	2009-06-17 00:17:37 UTC (rev 31074)
@@ -355,7 +355,7 @@
 	struct team *team = thread->team;
 
 	// 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
 	// team. We change the ownership back later.
 	if (atomic_get(&team->debug_info.flags) & B_TEAM_DEBUG_DEBUGGER_INSTALLED) {
@@ -458,8 +458,6 @@
 				"%s\n", strerror(port));
 			return port;
 		}
-
-		setPort = true;
 	}
 
 	// check the debug info structures once more: get the debugger port, set
@@ -1334,9 +1332,10 @@
 }
 
 
-/**	\brief Called by the debug nub thread of a team to broadcast a message
- *		   that are initialized for debugging (and thus have a debug port).
- */
+/*!	\brief Called by the debug nub thread of a team to broadcast a message to
+		all threads of the team that are initialized for debugging (and
+		thus have a debug port).
+*/
 static void
 broadcast_debugged_thread_message(struct thread *nubThread, int32 code,
 	const void *message, int32 size)




More information about the Haiku-commits mailing list