mirror of
https://github.com/simh/simh.git
synced 2026-01-13 07:19:43 +00:00
SCP: Fix recently revised breakpoint setup to behave properly breakpoint action is NULL
This commit is contained in:
parent
3951ad2432
commit
d0865d37f5
10
scp.c
10
scp.c
@ -7727,9 +7727,13 @@ return sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth] = NULL;
|
|||||||
|
|
||||||
void sim_brk_setact (const char *action)
|
void sim_brk_setact (const char *action)
|
||||||
{
|
{
|
||||||
sim_brk_act_buf[sim_do_depth] = realloc (sim_brk_act_buf[sim_do_depth], strlen (action) + 1);
|
if (action) {
|
||||||
strcpy (sim_brk_act_buf[sim_do_depth], action);
|
sim_brk_act_buf[sim_do_depth] = realloc (sim_brk_act_buf[sim_do_depth], strlen (action) + 1);
|
||||||
sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth];
|
strcpy (sim_brk_act_buf[sim_do_depth], action);
|
||||||
|
sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
sim_brk_clract ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* New PC */
|
/* New PC */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user