db_expr_t is now a long.

This commit is contained in:
pk 1997-02-05 00:01:50 +00:00
parent 39d0deba46
commit 095b310e77
2 changed files with 44 additions and 40 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_machdep.h,v 1.7 1996/03/31 22:21:28 pk Exp $ */
/* $NetBSD: db_machdep.h,v 1.8 1997/02/05 00:02:23 pk Exp $ */
/*
* Mach Operating System
@ -43,7 +43,7 @@
/* end of mangling */
typedef vm_offset_t db_addr_t; /* address - unsigned */
typedef int db_expr_t; /* expression - signed */
typedef long db_expr_t; /* expression - signed */
typedef struct {
struct trapframe ddb_tf;
@ -55,7 +55,11 @@ db_regs_t ddb_regs; /* register state */
#define DDB_TF (&ddb_regs.ddb_tf)
#define DDB_FR (&ddb_regs.ddb_fr)
#if defined(lint)
#define PC_REGS(regs) ((regs)->ddb_tf.tf_pc)
#else
#define PC_REGS(regs) ((db_addr_t)(regs)->ddb_tf.tf_pc)
#endif
#define BKPT_INST 0x91d02001 /* breakpoint instruction */
#define BKPT_SIZE (4) /* size of breakpoint inst */

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_interface.c,v 1.14 1996/10/13 03:00:32 christos Exp $ */
/* $NetBSD: db_interface.c,v 1.15 1997/02/05 00:01:50 pk Exp $ */
/*
* Mach Operating System
@ -54,43 +54,43 @@
static int nil;
struct db_variable db_regs[] = {
{ "psr", (int *)&DDB_TF->tf_psr, FCN_NULL, },
{ "pc", (int *)&DDB_TF->tf_pc, FCN_NULL, },
{ "npc", (int *)&DDB_TF->tf_npc, FCN_NULL, },
{ "y", (int *)&DDB_TF->tf_y, FCN_NULL, },
{ "wim", (int *)&DDB_TF->tf_global[0], FCN_NULL, }, /* see reg.h */
{ "g0", (int *)&nil, FCN_NULL, },
{ "g1", (int *)&DDB_TF->tf_global[1], FCN_NULL, },
{ "g2", (int *)&DDB_TF->tf_global[2], FCN_NULL, },
{ "g3", (int *)&DDB_TF->tf_global[3], FCN_NULL, },
{ "g4", (int *)&DDB_TF->tf_global[4], FCN_NULL, },
{ "g5", (int *)&DDB_TF->tf_global[5], FCN_NULL, },
{ "g6", (int *)&DDB_TF->tf_global[6], FCN_NULL, },
{ "g7", (int *)&DDB_TF->tf_global[7], FCN_NULL, },
{ "o0", (int *)&DDB_TF->tf_out[0], FCN_NULL, },
{ "o1", (int *)&DDB_TF->tf_out[1], FCN_NULL, },
{ "o2", (int *)&DDB_TF->tf_out[2], FCN_NULL, },
{ "o3", (int *)&DDB_TF->tf_out[3], FCN_NULL, },
{ "o4", (int *)&DDB_TF->tf_out[4], FCN_NULL, },
{ "o5", (int *)&DDB_TF->tf_out[5], FCN_NULL, },
{ "o6", (int *)&DDB_TF->tf_out[6], FCN_NULL, },
{ "o7", (int *)&DDB_TF->tf_out[7], FCN_NULL, },
{ "l0", (int *)&DDB_FR->fr_local[0], FCN_NULL, },
{ "l1", (int *)&DDB_FR->fr_local[1], FCN_NULL, },
{ "l2", (int *)&DDB_FR->fr_local[2], FCN_NULL, },
{ "l3", (int *)&DDB_FR->fr_local[3], FCN_NULL, },
{ "l4", (int *)&DDB_FR->fr_local[4], FCN_NULL, },
{ "l5", (int *)&DDB_FR->fr_local[5], FCN_NULL, },
{ "l6", (int *)&DDB_FR->fr_local[6], FCN_NULL, },
{ "l7", (int *)&DDB_FR->fr_local[7], FCN_NULL, },
{ "i0", (int *)&DDB_FR->fr_arg[0], FCN_NULL, },
{ "i1", (int *)&DDB_FR->fr_arg[1], FCN_NULL, },
{ "i2", (int *)&DDB_FR->fr_arg[2], FCN_NULL, },
{ "i3", (int *)&DDB_FR->fr_arg[3], FCN_NULL, },
{ "i4", (int *)&DDB_FR->fr_arg[4], FCN_NULL, },
{ "i5", (int *)&DDB_FR->fr_arg[5], FCN_NULL, },
{ "i6", (int *)&DDB_FR->fr_arg[6], FCN_NULL, },
{ "i7", (int *)&DDB_FR->fr_arg[7], FCN_NULL, },
{ "psr", (long *)&DDB_TF->tf_psr, FCN_NULL, },
{ "pc", (long *)&DDB_TF->tf_pc, FCN_NULL, },
{ "npc", (long *)&DDB_TF->tf_npc, FCN_NULL, },
{ "y", (long *)&DDB_TF->tf_y, FCN_NULL, },
{ "wim", (long *)&DDB_TF->tf_global[0], FCN_NULL, }, /* see reg.h */
{ "g0", (long *)&nil, FCN_NULL, },
{ "g1", (long *)&DDB_TF->tf_global[1], FCN_NULL, },
{ "g2", (long *)&DDB_TF->tf_global[2], FCN_NULL, },
{ "g3", (long *)&DDB_TF->tf_global[3], FCN_NULL, },
{ "g4", (long *)&DDB_TF->tf_global[4], FCN_NULL, },
{ "g5", (long *)&DDB_TF->tf_global[5], FCN_NULL, },
{ "g6", (long *)&DDB_TF->tf_global[6], FCN_NULL, },
{ "g7", (long *)&DDB_TF->tf_global[7], FCN_NULL, },
{ "o0", (long *)&DDB_TF->tf_out[0], FCN_NULL, },
{ "o1", (long *)&DDB_TF->tf_out[1], FCN_NULL, },
{ "o2", (long *)&DDB_TF->tf_out[2], FCN_NULL, },
{ "o3", (long *)&DDB_TF->tf_out[3], FCN_NULL, },
{ "o4", (long *)&DDB_TF->tf_out[4], FCN_NULL, },
{ "o5", (long *)&DDB_TF->tf_out[5], FCN_NULL, },
{ "o6", (long *)&DDB_TF->tf_out[6], FCN_NULL, },
{ "o7", (long *)&DDB_TF->tf_out[7], FCN_NULL, },
{ "l0", (long *)&DDB_FR->fr_local[0], FCN_NULL, },
{ "l1", (long *)&DDB_FR->fr_local[1], FCN_NULL, },
{ "l2", (long *)&DDB_FR->fr_local[2], FCN_NULL, },
{ "l3", (long *)&DDB_FR->fr_local[3], FCN_NULL, },
{ "l4", (long *)&DDB_FR->fr_local[4], FCN_NULL, },
{ "l5", (long *)&DDB_FR->fr_local[5], FCN_NULL, },
{ "l6", (long *)&DDB_FR->fr_local[6], FCN_NULL, },
{ "l7", (long *)&DDB_FR->fr_local[7], FCN_NULL, },
{ "i0", (long *)&DDB_FR->fr_arg[0], FCN_NULL, },
{ "i1", (long *)&DDB_FR->fr_arg[1], FCN_NULL, },
{ "i2", (long *)&DDB_FR->fr_arg[2], FCN_NULL, },
{ "i3", (long *)&DDB_FR->fr_arg[3], FCN_NULL, },
{ "i4", (long *)&DDB_FR->fr_arg[4], FCN_NULL, },
{ "i5", (long *)&DDB_FR->fr_arg[5], FCN_NULL, },
{ "i6", (long *)&DDB_FR->fr_arg[6], FCN_NULL, },
{ "i7", (long *)&DDB_FR->fr_arg[7], FCN_NULL, },
};
struct db_variable *db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);