gdb/gdbserver/
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 8 Aug 2006 16:03:29 +0000 (16:03 +0000)
committerRichard Sandiford <rdsandiford@googlemail.com>
Tue, 8 Aug 2006 16:03:29 +0000 (16:03 +0000)
commit290fadea96dc9b5f6b3b657a16633ce3f6f48edd
treeb9db18c7e9731803e63a38ff84f2135162fdb7c1
parent3d00d119d389c59cf9223d0b74d1d0bce0d18511
gdb/gdbserver/
* server.c (terminal_fd): New variable.
(old_foreground_pgrp): Likewise.
(restore_old_foreground_pgrp): New function.
(start_inferior): Record the terminal file descriptor in terminal_fd
and its original foreground group in old_foreground_pgrp.  Register
restore_old_foreground_pgrp with atexit().
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c