#include "event-top.h"
#include "ser-event.h"
+#include <chrono>
+
#ifdef HAVE_POLL
#if defined (HAVE_POLL_H)
#include <poll.h>
/* Work in progress. We may need to tell somebody
what kind of error we had. */
if (mask & POLLERR)
- printf_unfiltered (_("Error detected on fd %d\n"),
- file_ptr->fd);
+ warning (_("Error detected on fd %d"), file_ptr->fd);
if (mask & POLLNVAL)
- printf_unfiltered (_("Invalid or non-`poll'able fd %d\n"),
- file_ptr->fd);
+ warning (_("Invalid or non-`poll'able fd %d"),
+ file_ptr->fd);
file_ptr->error = 1;
}
else
{
if (ready_mask & GDB_EXCEPTION)
{
- printf_unfiltered (_("Exception condition detected "
- "on fd %d\n"), file_ptr->fd);
+ warning (_("Exception condition detected on fd %d"),
+ file_ptr->fd);
file_ptr->error = 1;
}
else
int num_found = 0;
/* Make sure all output is done before getting another event. */
- gdb_stdout->flush ();
- gdb_stderr->flush ();
+ flush_streams ();
if (gdb_notifier.num_fds == 0)
return -1;