X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fser-go32.c;h=0b2fa93b9c98ee0fff52c9d5342b7899ac9ae5ec;hb=e008305278cb42a576107cd8aa9f0b182eea1af2;hp=e3528951b4be03232f0aa02efba8a43898c7bf2f;hpb=481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9;p=binutils-gdb.git diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c index e3528951b4b..0b2fa93b9c9 100644 --- a/gdb/ser-go32.c +++ b/gdb/ser-go32.c @@ -1,5 +1,5 @@ /* Remote serial interface for local (hardwired) serial ports for GO32. - Copyright (C) 1992-2017 Free Software Foundation, Inc. + Copyright (C) 1992-2022 Free Software Foundation, Inc. Contributed by Nigel Stephens, Algorithmics Ltd. (nigel@algor.co.uk). @@ -655,7 +655,7 @@ dos_get_tty_state (struct serial *scb) /* We've never heard about this port. We should fail this call, unless they are asking about one of the 3 standard handles, in which case we pretend the handle was open by us if it is - connected to a terminal device. This is beacuse Unix + connected to a terminal device. This is because Unix terminals use the serial interface, so GDB expects the standard handles to go through here. */ if (scb->fd >= 3 || !isatty (scb->fd)) @@ -688,17 +688,6 @@ dos_set_tty_state (struct serial *scb, serial_ttystate ttystate) return 0; } -static int -dos_noflush_set_tty_state (struct serial *scb, serial_ttystate new_ttystate, - serial_ttystate old_ttystate) -{ - struct dos_ttystate *state; - - state = (struct dos_ttystate *) new_ttystate; - dos_setbaudrate (scb, state->baudrate); - return 0; -} - static int dos_flush_input (struct serial *scb) { @@ -882,7 +871,6 @@ static const struct serial_ops dos_ops = dos_copy_tty_state, dos_set_tty_state, dos_print_tty_state, - dos_noflush_set_tty_state, dos_setbaudrate, dos_setstopbits, dos_setparity, @@ -899,7 +887,7 @@ gdb_pipe (int pdes[2]) } static void -info_serial_command (char *arg, int from_tty) +info_serial_command (const char *arg, int from_tty) { struct dos_ttystate *port; #ifdef DOS_STATS @@ -927,8 +915,9 @@ info_serial_command (char *arg, int from_tty) #endif } +void _initialize_ser_dos (); void -_initialize_ser_dos (void) +_initialize_ser_dos () { serial_add_interface (&dos_ops);