mirror of
https://github.com/simh/simh.git
synced 2026-01-26 12:02:14 +00:00
SCP: Fix recently revised breakpoint setup to behave properly breakpoint action is NULL
This commit is contained in:
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)
|
||||
{
|
||||
sim_brk_act_buf[sim_do_depth] = realloc (sim_brk_act_buf[sim_do_depth], strlen (action) + 1);
|
||||
strcpy (sim_brk_act_buf[sim_do_depth], action);
|
||||
sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth];
|
||||
if (action) {
|
||||
sim_brk_act_buf[sim_do_depth] = realloc (sim_brk_act_buf[sim_do_depth], strlen (action) + 1);
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user