PERFORCE change 48312 for review
Juli Mallett
jmallett at FreeBSD.org
Sat Mar 6 18:58:00 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=48312
Change 48312 by jmallett at 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:
More information about the p4-projects
mailing list