Commit
183be222907a ("gdb, gdbserver: make target_waitstatus safe")
broke the remote-sim.c build. In fact, it does some wrong changes,
result of a bad sed invocation.
Fix it by adjusting the code to the new target_waitstatus API.
Change-Id: I3236ff7ef7681fc29215f68be210ff4263760e91
switch (reason)
{
case sim_exited:
- status->kind = TARGET_WAITKIND_EXITED;
- status->value.integer = sigrc;
+ status->set_exited (sigrc);
break;
case sim_stopped:
switch (sigrc)
case GDB_SIGNAL_INT:
case GDB_SIGNAL_TRAP:
default:
- status->kind = TARGET_WAITKIND_STOPPED;
- status->sig () = (enum gdb_signal) sigrc;
+ status->set_stopped ((gdb_signal) sigrc);
break;
}
break;
case sim_signalled:
- status->kind = TARGET_WAITKIND_SIGNALLED;
- status->sig () = (enum gdb_signal) sigrc;
+ status->set_signalled ((gdb_signal) sigrc);
break;
case sim_running:
case sim_polling: