* inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 4 Mar 2011 19:23:42 +0000 (19:23 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 4 Mar 2011 19:23:42 +0000 (19:23 +0000)
commit1e182ce8c375de8f86fe00198b07d0331e4c4e0d
tree0e7ec4987f47fe39ec610faff8caef45208eec64
parent2abae99411dbbced25ad99232ab329ad59578294
* inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
(terminal_save_ours): Remove misleading comment.
(inflow_inferior_data_cleanup): Free ttystate.
(inflow_inferior_exit): Likewise.
(copy_terminal_info): Copy ttystate.

* serial.c (serial_copy_tty_state): New function.
* serial.h (serial_copy_tty_state): Add prototype.
(struct serial_ops): Add copy_tty_state callback.
* ser-base.c (ser_base_copy_tty_state): New function.
* ser-base.h (ser_base_copy_tty_state): Add prototype.
* ser-go32.c (dos_copy_tty_state): New function.
(dos_ops): Install copy_tty_state callback.
* ser-mingw.c (_initialize_ser_windows): Likewise.
* ser-pipe.c (_initialize_ser_pipe): Likewise.
* ser-unix.c (hardwire_copy_tty_state): New function.
(_initialize_ser_hardwire): Install it.
gdb/ChangeLog
gdb/inflow.c
gdb/ser-base.c
gdb/ser-base.h
gdb/ser-go32.c
gdb/ser-mingw.c
gdb/ser-pipe.c
gdb/ser-tcp.c
gdb/ser-unix.c
gdb/serial.c
gdb/serial.h