* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
authorPedro Alves <palves@redhat.com>
Fri, 27 Aug 2010 16:02:49 +0000 (16:02 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 27 Aug 2010 16:02:49 +0000 (16:02 +0000)
commitec48365dd86cceb7bfc5e1c9ba9a68b01600abf3
treebf4fec06abd18ba90bea2538ac30ae46dcc031d9
parentf383de6633cba5ef363eabb486005f1cdb1270f7
* event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
(struct gdb_event) <fd>: Change type to gdb_fildes_t.
(struct file_handler) <fd>: Change type to gdb_fildes_t.
(process_event): Change local fd's type to gdb_fildes_t.
(create_file_handler): Adjust prototype.
(delete_file_handler): Adjust prototype.
(handle_file_event): Adjust prototype.  Use pfildes.
(create_file_event): Adjsut prototype.
* remote-utils.c (remote_desc, listen_desc): Change type to
gdb_fildes_t.
* server.h: New gdb_fildes_t typedef.
[USE_WIN32API]: Include winsock2.h.
(delete_file_handler, add_file_handler): Adjust prototypes.
(pfildes): Declare.
* utils.c (pfildes): New.
gdb/gdbserver/ChangeLog
gdb/gdbserver/event-loop.c
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.h
gdb/gdbserver/utils.c