Make Python use a struct serial event
authorPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:49:30 +0000 (16:49 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 12 Apr 2016 15:54:25 +0000 (16:54 +0100)
commit6eddd09a12e752c08f55e62fbb30d42058a6b1ea
tree01fc030bec230cf6fc3b24af7bdd2d013eb065c7
parentf0881b37b6734328118a5683e1e18f65a8987c89
Make Python use a struct serial event

Now that we have an abstract for wakeable events, use it instead of a
(heavier) serial pipe.

gdb/ChangeLog:
2016-04-12  Pedro Alves  <palves@redhat.com>

* python/python.c: Include "ser-event.h".
(gdbpy_event_fds): Delete.
(gdbpy_serial_event): New.
(gdbpy_run_events): Change prototype.  Use serial_event_clear
instead of serial_readchar.
(gdbpy_post_event): Use serial_event_set instead of serial_write.
(gdbpy_initialize_events): Use make_serial_event instead of
serial_pipe.
gdb/ChangeLog
gdb/python/python.c