Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2004 18:57:59 -0800 (PST)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 48312 for review
Message-ID:  <200403070257.i272vx9X030653@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=48312

Change 48312 by jmallett@jmallett_oingo on 2004/03/06 18:57:33

	If curthread is null don't try to check for null curproc.  Urgh.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/trap.c#15 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/trap.c#15 (text+ko) ====

@@ -132,13 +132,15 @@
 	printf("cause               = %#x\n", cause);
 	printf("status              = %#lx\n", tf->tf_regs[TF_SR]);
 	printf("current thread      = %p\n", curthread);
-	printf("current process     = ");
-	if (curproc != NULL) {
-		printf("%d", curproc->p_pid);
-		printf(" (%s)", curproc->p_comm);
-	} else
-		printf("%p", curproc);
-	printf("\n");
+	if (curthread != NULL) {
+		printf("current process     = ");
+		if (curproc != NULL) {
+			printf("%d", curproc->p_pid);
+			printf(" (%s)", curproc->p_comm);
+		} else
+			printf("%p", curproc);
+		printf("\n");
+	}
 
 	switch (code) {
 	case T_BREAK:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403070257.i272vx9X030653>