diff options
author | Pedro Alves <palves@redhat.com> | 2010-08-27 16:02:49 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-08-27 16:02:49 +0000 |
commit | ec48365dd86cceb7bfc5e1c9ba9a68b01600abf3 (patch) | |
tree | bf4fec06abd18ba90bea2538ac30ae46dcc031d9 /gdb/gdbserver/remote-utils.c | |
parent | f383de6633cba5ef363eabb486005f1cdb1270f7 (diff) | |
download | gdb-ec48365dd86cceb7bfc5e1c9ba9a68b01600abf3.zip gdb-ec48365dd86cceb7bfc5e1c9ba9a68b01600abf3.tar.gz gdb-ec48365dd86cceb7bfc5e1c9ba9a68b01600abf3.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 81cf9bc..385a0bc 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -107,8 +107,8 @@ struct sym_cache int remote_debug = 0; struct ui_file *gdb_stdlog; -static int remote_desc = INVALID_DESCRIPTOR; -static int listen_desc = INVALID_DESCRIPTOR; +static gdb_fildes_t remote_desc = INVALID_DESCRIPTOR; +static gdb_fildes_t listen_desc = INVALID_DESCRIPTOR; /* FIXME headerize? */ extern int using_threads; |