Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc switch an assert in backtrace to an...
details: https://anonhg.NetBSD.org/src/rev/96e785a012b2
branches: trunk
changeset: 359899:96e785a012b2
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Feb 28 20:11:09 2018 +0000
description:
switch an assert in backtrace to an error return.
diffstat:
sys/arch/powerpc/powerpc/db_trace.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 37a7cd103c70 -r 96e785a012b2 sys/arch/powerpc/powerpc/db_trace.c
--- a/sys/arch/powerpc/powerpc/db_trace.c Wed Feb 28 20:09:29 2018 +0000
+++ b/sys/arch/powerpc/powerpc/db_trace.c Wed Feb 28 20:11:09 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_trace.c,v 1.57 2011/12/13 11:03:52 kiyohara Exp $ */
+/* $NetBSD: db_trace.c,v 1.58 2018/02/28 20:11:09 mrg Exp $ */
/* $OpenBSD: db_trace.c,v 1.3 1997/03/21 02:10:48 niklas Exp $ */
/*
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.57 2011/12/13 11:03:52 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.58 2018/02/28 20:11:09 mrg Exp $");
#include "opt_ppcarch.h"
@@ -161,7 +161,10 @@
return;
}
l = LIST_FIRST(&p->p_lwps);
- KASSERT(l != NULL);
+ if (l == NULL) {
+ (*pr)("trace: no LWP?\n");
+ return;
+ }
}
(*pr)("lid %d ", l->l_lid);
pcb = lwp_getpcb(l);
Home |
Main Index |
Thread Index |
Old Index