From 7f57ce2c88236f1597efd7ee14dce03561f7a008 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 10 Jan 2013 13:37:31 -0800 Subject: [PATCH] Added help context to pdp11_dz and pdp11_vh --- PDP11/pdp11_dz.c | 4 +++- PDP11/pdp11_vh.c | 6 +++++- sim_defs.h | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/PDP11/pdp11_dz.c b/PDP11/pdp11_dz.c index 06b44aa0..1dc3d3db 100644 --- a/PDP11/pdp11_dz.c +++ b/PDP11/pdp11_dz.c @@ -290,7 +290,9 @@ DEVICE dz_dev = { &tmxr_ex, &tmxr_dep, &dz_reset, NULL, &dz_attach, &dz_detach, &dz_dib, DEV_DISABLE | DEV_UBUS | DEV_QBUS | DEV_DEBUG | DEV_MUX, - 0, dz_debug + 0, dz_debug, NULL, NULL, + NULL, NULL, /* help and attach_help routines */ + (void *)&dz_desc/* help context variable */ }; /* Register names for Debug tracing */ diff --git a/PDP11/pdp11_vh.c b/PDP11/pdp11_vh.c index 5ce74673..7b2e19d2 100644 --- a/PDP11/pdp11_vh.c +++ b/PDP11/pdp11_vh.c @@ -427,7 +427,11 @@ DEVICE vh_dev = { &vh_detach, /* detach routine */ (void *)&vh_dib,/* context */ DEV_DISABLE | DEV_DIS | DEV_QBUS | DEV_UBUS | DEV_DEBUG | DEV_MUX, /* flags */ - 0, vh_debug + 0, vh_debug, /* debug control and debug flags */ + NULL, /* memory size routine */ + NULL, /* logical name */ + NULL, NULL, /* help and attach_help routines */ + (void *)&vh_desc/* help context variable */ }; /* Register names for Debug tracing */ diff --git a/sim_defs.h b/sim_defs.h index f7843a84..e4e7164f 100644 --- a/sim_defs.h +++ b/sim_defs.h @@ -321,6 +321,7 @@ struct sim_device { struct sim_unit *uptr, int32 flag, char *cptr); /* help */ t_stat (*attach_help)(FILE *st, struct sim_device *dptr, struct sim_unit *uptr, int32 flag, char *cptr); /* attach help */ + void *help_ctx; /* Context available to help routines */ }; /* Device flags */