projects
/
external
/
binutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: Add new -n flag to some info commands
[external/binutils.git]
/
gdb
/
ser-event.c
diff --git
a/gdb/ser-event.c
b/gdb/ser-event.c
index
8b88ca0
..
a65a186
100644
(file)
--- a/
gdb/ser-event.c
+++ b/
gdb/ser-event.c
@@
-1,5
+1,5
@@
/* Serial interface for a selectable event.
/* Serial interface for a selectable event.
- Copyright (C) 2016-201
7
Free Software Foundation, Inc.
+ Copyright (C) 2016-201
9
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-19,7
+19,7
@@
#include "defs.h"
#include "ser-event.h"
#include "serial.h"
#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.
/* On POSIX hosts, a serial_event is basically an abstraction for the
classical self-pipe trick.
@@
-202,7
+202,6
@@
void
serial_event_clear (struct serial_event *event)
{
struct serial *ser = (struct serial *) event;
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;
#ifndef USE_WIN32API
int r;
@@
-214,6
+213,7
@@
serial_event_clear (struct serial_event *event)
}
while (r > 0 || (r < 0 && errno == EINTR));
#else
}
while (r > 0 || (r < 0 && errno == EINTR));
#else
+ struct serial_event_state *state = (struct serial_event_state *) ser->state;
ResetEvent (state->event);
#endif
}
ResetEvent (state->event);
#endif
}