mirror of
https://github.com/simh/simh.git
synced 2026-02-12 02:48:38 +00:00
SCP: Breakpoint cleanup.
- Add detailed error message info while parsing breakpoint commands - Properly limit breakpoint class values to reflect available mask bits - Declare globally sim_brk_npc since it is a documented API - Revise simh_breakpoints.doc to reflect current behavior
This commit is contained in:
@@ -301,8 +301,8 @@ typedef uint32 t_addr;
|
||||
|
||||
/* Breakpoint spaces definitions */
|
||||
|
||||
#define SIM_BKPT_N_SPC 16 /* max number spaces */
|
||||
#define SIM_BKPT_V_SPC 28 /* location in arg */
|
||||
#define SIM_BKPT_N_SPC (1 << (32 - SIM_BKPT_V_SPC)) /* max number spaces */
|
||||
#define SIM_BKPT_V_SPC (BRK_TYP_MAX + 1) /* location in arg */
|
||||
|
||||
/* Extended switch definitions (bits >= 26) */
|
||||
|
||||
@@ -718,6 +718,7 @@ struct BRKTAB {
|
||||
#define BRK_TYP_DYN_USR (SWMASK ('Z'+2))
|
||||
#define BRK_TYP_DYN_ALL (BRK_TYP_DYN_USR|BRK_TYP_DYN_STEPOVER) /* Mask of All Dynamic types */
|
||||
#define BRK_TYP_TEMP (SWMASK ('Z'+3)) /* Temporary (one-shot) */
|
||||
#define BRK_TYP_MAX (('Z'-'A')+3) /* Maximum breakpoint type */
|
||||
int32 cnt; /* proceed count */
|
||||
char *act; /* action string */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user