X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fser-pipe.c;h=db4c8e0e1a4c280c28ff3743556da34c9811e8bf;hb=60db1b8565060f4bd2287b060ea9724c93289982;hp=1e777b7e4f6ee7fa8745f7ca4fb94901cde27797;hpb=438e1e427e8393de73d22617abe4d8eba0270e72;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ser-pipe.c b/gdb/ser-pipe.c index 1e777b7e4f..db4c8e0e1a 100644 --- a/gdb/ser-pipe.c +++ b/gdb/ser-pipe.c @@ -1,5 +1,5 @@ /* Serial interface for a pipe to a separate program - Copyright (C) 1999-2015 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. Contributed by Cygnus Solutions. @@ -27,17 +27,15 @@ #include #include -#include "gdb_sys_time.h" +#include "gdbsupport/gdb_sys_time.h" #include -#include "filestuff.h" +#include "gdbsupport/filestuff.h" #include static int pipe_open (struct serial *scb, const char *name); static void pipe_close (struct serial *scb); -extern void _initialize_ser_pipe (void); - struct pipe_state { int pid; @@ -148,7 +146,7 @@ pipe_open (struct serial *scb, const char *name) static void pipe_close (struct serial *scb) { - struct pipe_state *state = scb->state; + struct pipe_state *state = (struct pipe_state *) scb->state; close (scb->fd); scb->fd = -1; @@ -221,7 +219,6 @@ static const struct serial_ops pipe_ops = ser_base_copy_tty_state, ser_base_set_tty_state, ser_base_print_tty_state, - ser_base_noflush_set_tty_state, ser_base_setbaudrate, ser_base_setstopbits, ser_base_setparity, @@ -231,8 +228,9 @@ static const struct serial_ops pipe_ops = ser_unix_write_prim }; +void _initialize_ser_pipe (); void -_initialize_ser_pipe (void) +_initialize_ser_pipe () { serial_add_interface (&pipe_ops); }