allow ddb access to lr, ctr, cr and xer registers when not on PPC_IBM4XX
This commit is contained in:
parent
98d1a18067
commit
f03e8813e0
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_interface.c,v 1.15 2001/12/27 10:32:23 dbj Exp $ */
|
||||
/* $NetBSD: db_interface.c,v 1.16 2001/12/30 20:53:04 dbj Exp $ */
|
||||
/* $OpenBSD: db_interface.c,v 1.2 1996/12/28 06:21:50 rahnds Exp $ */
|
||||
|
||||
#define USERACC
|
||||
|
@ -90,11 +90,11 @@ kdb_trap(type, v)
|
|||
memcpy(DDB_REGS->r, frame->fixreg, 32 * sizeof(u_int32_t));
|
||||
DDB_REGS->iar = frame->srr0;
|
||||
DDB_REGS->msr = frame->srr1;
|
||||
#ifdef PPC_IBM4XX
|
||||
DDB_REGS->lr = frame->lr;
|
||||
DDB_REGS->ctr = frame->ctr;
|
||||
DDB_REGS->cr = frame->cr;
|
||||
DDB_REGS->xer = frame->xer;
|
||||
#ifdef PPC_IBM4XX
|
||||
DDB_REGS->dear = frame->dear;
|
||||
DDB_REGS->esr = frame->esr;
|
||||
DDB_REGS->pid = frame->pid;
|
||||
|
@ -109,11 +109,11 @@ kdb_trap(type, v)
|
|||
memcpy(frame->fixreg, DDB_REGS->r, 32 * sizeof(u_int32_t));
|
||||
frame->srr0 = DDB_REGS->iar;
|
||||
frame->srr1 = DDB_REGS->msr;
|
||||
#ifdef PPC_IBM4XX
|
||||
frame->lr = DDB_REGS->lr;
|
||||
frame->ctr = DDB_REGS->ctr;
|
||||
frame->cr = DDB_REGS->cr;
|
||||
frame->xer = DDB_REGS->xer;
|
||||
#ifdef PPC_IBM4XX
|
||||
frame->dear = DDB_REGS->dear;
|
||||
frame->esr = DDB_REGS->esr;
|
||||
frame->pid = DDB_REGS->pid;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_trace.c,v 1.14 2001/08/30 21:44:58 matt Exp $ */
|
||||
/* $NetBSD: db_trace.c,v 1.15 2001/12/30 20:53:04 dbj Exp $ */
|
||||
/* $OpenBSD: db_trace.c,v 1.3 1997/03/21 02:10:48 niklas Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -78,11 +78,11 @@ const struct db_variable db_regs[] = {
|
|||
{ "r31", (long *)&ddb_regs.r[31], FCN_NULL },
|
||||
{ "iar", (long *)&ddb_regs.iar, FCN_NULL },
|
||||
{ "msr", (long *)&ddb_regs.msr, FCN_NULL },
|
||||
#ifdef PPC_IBM4XX
|
||||
{ "lr", (long *)&ddb_regs.lr, FCN_NULL },
|
||||
{ "ctr", (long *)&ddb_regs.ctr, FCN_NULL },
|
||||
{ "cr", (long *)&ddb_regs.cr, FCN_NULL },
|
||||
{ "xer", (long *)&ddb_regs.xer, FCN_NULL },
|
||||
#ifdef PPC_IBM4XX
|
||||
{ "dear", (long *)&ddb_regs.dear, FCN_NULL },
|
||||
{ "esr", (long *)&ddb_regs.esr, FCN_NULL },
|
||||
{ "pid", (long *)&ddb_regs.pid, FCN_NULL },
|
||||
|
|
Loading…
Reference in New Issue