Cast initialization of 2nd field in db_variable struct to (long *). Should

probably be register_t *
This commit is contained in:
fvdl 1997-02-04 19:52:55 +00:00
parent f79798f810
commit 0a4a706e84
1 changed files with 15 additions and 15 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: db_trace.c,v 1.19 1997/02/04 00:02:34 mycroft Exp $ */
/* $NetBSD: db_trace.c,v 1.20 1997/02/04 19:52:55 fvdl Exp $ */
/*
* Mach Operating System
@ -42,20 +42,20 @@
* Machine register set.
*/
struct db_variable db_regs[] = {
{ "es", &ddb_regs.tf_es, FCN_NULL },
{ "ds", &ddb_regs.tf_ds, FCN_NULL },
{ "edi", &ddb_regs.tf_edi, FCN_NULL },
{ "esi", &ddb_regs.tf_esi, FCN_NULL },
{ "ebp", &ddb_regs.tf_ebp, FCN_NULL },
{ "ebx", &ddb_regs.tf_ebx, FCN_NULL },
{ "edx", &ddb_regs.tf_edx, FCN_NULL },
{ "ecx", &ddb_regs.tf_ecx, FCN_NULL },
{ "eax", &ddb_regs.tf_eax, FCN_NULL },
{ "eip", &ddb_regs.tf_eip, FCN_NULL },
{ "cs", &ddb_regs.tf_cs, FCN_NULL },
{ "eflags", &ddb_regs.tf_eflags, FCN_NULL },
{ "esp", &ddb_regs.tf_esp, FCN_NULL },
{ "ss", &ddb_regs.tf_ss, FCN_NULL },
{ "es", (long *)&ddb_regs.tf_es, FCN_NULL },
{ "ds", (long *)&ddb_regs.tf_ds, FCN_NULL },
{ "edi", (long *)&ddb_regs.tf_edi, FCN_NULL },
{ "esi", (long *)&ddb_regs.tf_esi, FCN_NULL },
{ "ebp", (long *)&ddb_regs.tf_ebp, FCN_NULL },
{ "ebx", (long *)&ddb_regs.tf_ebx, FCN_NULL },
{ "edx", (long *)&ddb_regs.tf_edx, FCN_NULL },
{ "ecx", (long *)&ddb_regs.tf_ecx, FCN_NULL },
{ "eax", (long *)&ddb_regs.tf_eax, FCN_NULL },
{ "eip", (long *)&ddb_regs.tf_eip, FCN_NULL },
{ "cs", (long *)&ddb_regs.tf_cs, FCN_NULL },
{ "eflags", (long *)&ddb_regs.tf_eflags, FCN_NULL },
{ "esp", (long *)&ddb_regs.tf_esp, FCN_NULL },
{ "ss", (long *)&ddb_regs.tf_ss, FCN_NULL },
};
struct db_variable *db_eregs = db_regs + sizeof(db_regs)/sizeof(db_regs[0]);