PERFORCE change 53365 for review

Marcel Moolenaar marcel at FreeBSD.org
Sun May 23 16:50:44 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=53365

Change 53365 by marcel at marcel_nfs on 2004/05/23 16:49:52

	If db_trace_thread() returns an error, make sure to
	print a new line to preserve the layout of the listing.

Affected files ...

.. //depot/projects/gdb/sys/ddb/db_thread.c#5 edit

Differences ...

==== //depot/projects/gdb/sys/ddb/db_thread.c#5 (text+ko) ====

@@ -96,8 +96,10 @@
 	while (!pager_quit && thr != NULL) {
 		db_printf("  %6d (%p)  ", (int)thr->td_tid, thr);
 		prev_jb = kdb_jmpbuf(jb);
-		if (setjmp(jb) == 0)
-			db_trace_thread(thr, 1);
+		if (setjmp(jb) == 0) {
+			if (db_trace_thread(thr, 1) != 0)
+				db_printf("***\n");
+		}
 		kdb_jmpbuf(prev_jb);
 		thr = kdb_thr_next(thr);
 	}


More information about the p4-projects mailing list