+2020-04-13 Tom Tromey <tom@tromey.com>
+
+ * server.c (invoke_async_signal_handlers)
+ (check_async_event_handlers, flush_streams, gdb_select): New
+ functions.
+
2020-04-13 Tom Tromey <tom@tromey.com>
* configure: Rebuild.
#include "gdbsupport/selftest.h"
#include "gdbsupport/scope-exit.h"
+#include "gdbsupport/gdb_select.h"
#define require_running_or_return(BUF) \
if (!target_running ()) \
return 0;
}
+/* See gdbsupport/event-loop.h. */
+
+int
+invoke_async_signal_handlers ()
+{
+ return 0;
+}
+
+/* See gdbsupport/event-loop.h. */
+
+int
+check_async_event_handlers ()
+{
+ return 0;
+}
+
+/* See gdbsupport/errors.h */
+
+void
+flush_streams ()
+{
+ fflush (stdout);
+ fflush (stderr);
+}
+
+/* See gdbsupport/gdb_select.h. */
+
+int
+gdb_select (int n, fd_set *readfds, fd_set *writefds,
+ fd_set *exceptfds, struct timeval *timeout)
+{
+ return select (n, readfds, writefds, exceptfds, timeout);
+}
+
#if GDB_SELF_TEST
namespace selftests
{