mirror of
https://github.com/simh/simh.git
synced 2026-03-02 17:55:17 +00:00
SCP: Add API for device help to display supported breakpoints
This commit is contained in:
19
scp.c
19
scp.c
@@ -1129,12 +1129,14 @@ static const char simh_help1[] =
|
||||
"5Removing Breakpoints\n"
|
||||
" Breakpoints can be cleared by the NOBREAK or the SET NOBREAK commands.\n"
|
||||
"5Examples\n"
|
||||
"++BREAK set E break at current PC\n"
|
||||
"++BREAK -e 200 set E break at 200\n"
|
||||
"++BREAK 2000/2[2] set E breaks at 2000,2001 with count = 2\n"
|
||||
"++BREAK 100;EX AC;D MQ 0 set E break at 100 with actions EX AC and\n"
|
||||
"+++++++++D MQ 0\n"
|
||||
"++BREAK 100; delete action on break at 100\n\n"
|
||||
"++BREAK set E break at current PC\n"
|
||||
"++BREAK -e 200 set E break at 200\n"
|
||||
"++BREAK 2000/2[2] set E breaks at 2000,2001 with count = 2\n"
|
||||
"++BREAK 100;EX AC;D MQ 0 set E break at 100 with actions EX AC\n"
|
||||
"+++++++++and D MQ 0\n"
|
||||
"++BREAK 100; delete action on break at 100\n"
|
||||
"++HELP CPU BREAK display the breakpoint types supported\n"
|
||||
"+++++++++by the CPU device\n\n"
|
||||
/***************** 80 character line width template *************************/
|
||||
#define HLP_DEBUG "*Commands Stopping_The_Simulator User_Specified_Stop_Conditions DEBUG"
|
||||
#define HLP_NODEBUG "*Commands Stopping_The_Simulator User_Specified_Stop_Conditions DEBUG"
|
||||
@@ -3724,6 +3726,11 @@ while (brkt->btyp) {
|
||||
fprintf (st, "The default breakpoint type is: %s\n", put_switches (gbuf, sizeof(gbuf), sim_brk_dflt));
|
||||
}
|
||||
|
||||
void fprint_brk_help (FILE *st, DEVICE *dptr)
|
||||
{
|
||||
fprint_brk_help_ex (st, dptr, TRUE);
|
||||
}
|
||||
|
||||
t_stat help_dev_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr)
|
||||
{
|
||||
char gbuf[CBUFSIZE];
|
||||
|
||||
1
scp.h
1
scp.h
@@ -203,6 +203,7 @@ const char *sim_fmt_numeric (double number);
|
||||
const char *sprint_capac (DEVICE *dptr, UNIT *uptr);
|
||||
char *read_line (char *cptr, int32 size, FILE *stream);
|
||||
char *read_line_p (const char *prompt, char *ptr, int32 size, FILE *stream);
|
||||
void fprint_brk_help (FILE *st, DEVICE *dptr);
|
||||
void fprint_reg_help (FILE *st, DEVICE *dptr);
|
||||
void fprint_set_help (FILE *st, DEVICE *dptr);
|
||||
void fprint_show_help (FILE *st, DEVICE *dptr);
|
||||
|
||||
Reference in New Issue
Block a user