Print pc/pr when faulting in ddb, it comes in handy.

This commit is contained in:
uwe 2007-05-17 22:12:08 +00:00
parent 4be3505e2e
commit b348c690b7

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.42 2007/02/23 03:14:32 uwe Exp $ */
/* $NetBSD: db_interface.c,v 1.43 2007/05/17 22:12:08 uwe Exp $ */
/*-
* Copyright (C) 2002 UCHIYAMA Yasushi. All rights reserved.
@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.42 2007/02/23 03:14:32 uwe Exp $");
__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.43 2007/05/17 22:12:08 uwe Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -133,6 +133,8 @@ kdb_trap(int type, int code, db_regs_t *regs)
kdb_printtrap(type, code);
if (db_recover != NULL) {
db_printf("[pc %x, pr %x]: ",
regs->tf_spc, regs->tf_pr);
db_error("Faulted in DDB; continuing...\n");
/*NOTREACHED*/
}