diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 539bab687d..76d86ea55e 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2021-01-13 Mike Frysinger + + * sim-watch.c (do_watchpoint_create): Parse arg+1 and assign to arg1. + 2021-01-13 Mike Frysinger * sim-events.c (sim_events_watch_sim): Change byte_order type to diff --git a/sim/common/sim-watch.c b/sim/common/sim-watch.c index d69d42cb95..29ac982b0d 100644 --- a/sim/common/sim-watch.c +++ b/sim/common/sim-watch.c @@ -255,7 +255,7 @@ do_watchpoint_create (SIM_DESC sd, (*point)->arg0 = strtoul (arg, &arg, 0); if (arg[0] == ',') - (*point)->arg0 = strtoul (arg, NULL, 0); + (*point)->arg1 = strtoul (arg + 1, NULL, 0); else (*point)->arg1 = (*point)->arg0;