int db_access_svc_sp __P((struct db_variable *, db_expr_t *, int));
struct db_variable db_regs[] = {
- { "spsr", (int *)&DDB_TF->tf_spsr, FCN_NULL, },
- { "r0", (int *)&DDB_TF->tf_r0, FCN_NULL, },
- { "r1", (int *)&DDB_TF->tf_r1, FCN_NULL, },
- { "r2", (int *)&DDB_TF->tf_r2, FCN_NULL, },
- { "r3", (int *)&DDB_TF->tf_r3, FCN_NULL, },
- { "r4", (int *)&DDB_TF->tf_r4, FCN_NULL, },
- { "r5", (int *)&DDB_TF->tf_r5, FCN_NULL, },
- { "r6", (int *)&DDB_TF->tf_r6, FCN_NULL, },
- { "r7", (int *)&DDB_TF->tf_r7, FCN_NULL, },
- { "r8", (int *)&DDB_TF->tf_r8, FCN_NULL, },
- { "r9", (int *)&DDB_TF->tf_r9, FCN_NULL, },
- { "r10", (int *)&DDB_TF->tf_r10, FCN_NULL, },
- { "r11", (int *)&DDB_TF->tf_r11, FCN_NULL, },
- { "r12", (int *)&DDB_TF->tf_r12, FCN_NULL, },
- { "usr_sp", (int *)&DDB_TF->tf_usr_sp, FCN_NULL, },
- { "svc_sp", (int *)&nil, db_access_svc_sp, },
- { "usr_lr", (int *)&DDB_TF->tf_usr_lr, FCN_NULL, },
- { "svc_lr", (int *)&DDB_TF->tf_svc_lr, FCN_NULL, },
- { "pc", (int *)&DDB_TF->tf_pc, FCN_NULL, },
+ { "spsr", (long *)&DDB_TF->tf_spsr, FCN_NULL, },
+ { "r0", (long *)&DDB_TF->tf_r0, FCN_NULL, },
+ { "r1", (long *)&DDB_TF->tf_r1, FCN_NULL, },
+ { "r2", (long *)&DDB_TF->tf_r2, FCN_NULL, },
+ { "r3", (long *)&DDB_TF->tf_r3, FCN_NULL, },
+ { "r4", (long *)&DDB_TF->tf_r4, FCN_NULL, },
+ { "r5", (long *)&DDB_TF->tf_r5, FCN_NULL, },
+ { "r6", (long *)&DDB_TF->tf_r6, FCN_NULL, },
+ { "r7", (long *)&DDB_TF->tf_r7, FCN_NULL, },
+ { "r8", (long *)&DDB_TF->tf_r8, FCN_NULL, },
+ { "r9", (long *)&DDB_TF->tf_r9, FCN_NULL, },
+ { "r10", (long *)&DDB_TF->tf_r10, FCN_NULL, },
+ { "r11", (long *)&DDB_TF->tf_r11, FCN_NULL, },
+ { "r12", (long *)&DDB_TF->tf_r12, FCN_NULL, },
+ { "usr_sp", (long *)&DDB_TF->tf_usr_sp, FCN_NULL, },
+ { "svc_sp", (long *)&nil, db_access_svc_sp, },
+ { "usr_lr", (long *)&DDB_TF->tf_usr_lr, FCN_NULL, },
+ { "svc_lr", (long *)&DDB_TF->tf_svc_lr, FCN_NULL, },
+ { "pc", (long *)&DDB_TF->tf_pc, FCN_NULL, },
};
struct db_variable *db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);
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]);