X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fser-event.c;h=d7198d0e3c45f9cb2d91accc6e43dd7cfb2dc4a0;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=08b56a3174ca3410d4b761075f9e1de2c915e6d9;hpb=61baf725eca99af2569262d10aca03dcde2698f6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ser-event.c b/gdb/ser-event.c index 08b56a3174..d7198d0e3c 100644 --- a/gdb/ser-event.c +++ b/gdb/ser-event.c @@ -1,5 +1,5 @@ /* Serial interface for a selectable event. - Copyright (C) 2016-2017 Free Software Foundation, Inc. + Copyright (C) 2016-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,7 @@ #include "defs.h" #include "ser-event.h" #include "serial.h" -#include "common/filestuff.h" +#include "gdbsupport/filestuff.h" /* On POSIX hosts, a serial_event is basically an abstraction for the classical self-pipe trick. @@ -144,7 +144,6 @@ static const struct serial_ops serial_event_ops = NULL, /* copy_tty_state */ NULL, /* set_tty_state */ NULL, /* print_tty_state */ - NULL, /* noflush_set_tty_state */ NULL, /* setbaudrate */ NULL, /* setstopbits */ NULL, /* setparity */ @@ -203,7 +202,6 @@ void serial_event_clear (struct serial_event *event) { struct serial *ser = (struct serial *) event; - struct serial_event_state *state = (struct serial_event_state *) ser->state; #ifndef USE_WIN32API int r; @@ -215,6 +213,7 @@ serial_event_clear (struct serial_event *event) } while (r > 0 || (r < 0 && errno == EINTR)); #else + struct serial_event_state *state = (struct serial_event_state *) ser->state; ResetEvent (state->event); #endif }