// <summary> // Stop the inferior. // Returns true if it actually stopped the inferior and false if it was // already stopped. // Note that the target may have stopped abnormally in the meantime, in // this case we return the corresponding ChildEvent. // </summary> public bool Stop(out ChildEvent new_event) { check_disposed (); int status; TargetError error = mono_debugger_server_stop_and_wait (server_handle, out status); if (error != TargetError.None) { new_event = null; return false; } else if (status == 0) { new_event = null; return true; } new_event = ProcessEvent (status); return true; }