1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SCP: Added debugging support for EXPECT and SEND activities. Fixed SEND buffer queuing bug.

This commit is contained in:
Mark Pizzolato
2014-10-17 11:34:06 -07:00
parent 02e90de6a4
commit ddc29fb2c9
4 changed files with 40 additions and 7 deletions

View File

@@ -638,6 +638,7 @@ struct sim_brktab {
struct sim_exptab {
uint8 *match; /* match string */
uint32 size; /* match string size */
char *match_pattern; /* match pattern for format */
int32 cnt; /* proceed count */
int32 switches; /* flags */
#define EXP_TYP_PERSIST (SWMASK ('P')) /* rule persists after match, default is once a rule matches, it is removed */
@@ -648,6 +649,8 @@ struct sim_exptab {
/* Expect Context */
struct sim_expect {
struct sim_device *dptr; /* Device (for Debug) */
uint32 dbit; /* Debugging Bit */
struct sim_exptab *rules; /* match rules */
int32 size; /* count of match rules */
uint8 *buf; /* buffer of output data which has produced */
@@ -659,6 +662,8 @@ struct sim_expect {
struct sim_send {
uint32 delay; /* instruction delay before/between sent data */
struct sim_device *dptr; /* Device (for Debug) */
uint32 dbit; /* Debugging Bit */
#define SEND_DEFAULT_DELAY 1000 /* default delay instruction count */
double next_time; /* execution time when next data can be sent */
uint8 *buffer; /* buffer */