projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git]
/
gdb
/
ser-event.c
diff --git
a/gdb/ser-event.c
b/gdb/ser-event.c
index 08b56a3174ca3410d4b761075f9e1de2c915e6d9..d7198d0e3c45f9cb2d91accc6e43dd7cfb2dc4a0 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-20
17
Free Software Foundation, Inc.
+ Copyright (C) 2016-20
20
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.
@@
-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, /* copy_tty_state */
NULL, /* set_tty_state */
NULL, /* print_tty_state */
- NULL, /* noflush_set_tty_state */
NULL, /* setbaudrate */
NULL, /* setstopbits */
NULL, /* setparity */
NULL, /* setbaudrate */
NULL, /* setstopbits */
NULL, /* setparity */
@@
-203,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;
@@
-215,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
}
This page took
0.026338 seconds
and
4
git commands to generate.