aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-go32.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-06-30 22:20:53 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-06-30 22:20:53 +0000
commitc2e247c4ff760324df53fe50a9ef9168fd5e9452 (patch)
tree294925e76fa072b45c57eb038d0ab0a7f5c022a7 /gdb/ser-go32.c
parent0798b091648999794c6d598fd2a4d29f88ab2ef6 (diff)
downloadgdb-c2e247c4ff760324df53fe50a9ef9168fd5e9452.zip
gdb-c2e247c4ff760324df53fe50a9ef9168fd5e9452.tar.gz
gdb-c2e247c4ff760324df53fe50a9ef9168fd5e9452.tar.bz2
* inftarg.c: Remove unused include of terminal.h.
* signals.h: Don't undefine signals anymore. * main.c: Use job_control from serial.h. * fork-child.c (fork_inferior): Use gdb_setpgid. * serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid. * utils.c (quit): Use current_target->to_terminal_ours to figure out whether we care about lack of job control, rather than __GO32__. * utils.c: Include serial.h not terminal.h (quit): Use job_control not TIOCGPGRP. * terminal.h: Don't undefine TIOCGPGRP. * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT. * utils.c (quit): Use it. * serial.h: Add SERIAL_UN_FDOPEN. * utils.c (quit): Use it. * ser-unix.c: Add process group to ttystate. [HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate. * inflow.c: Include serial.h not terminal.h. Use serial.h stuff to replace most of the maze of #ifdef's. * inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function. * serial.h: Document SERIAL_SET_TTY_STATE as being immediate. * ser-unix.c: Use TIOCSETN not TIOCSETP so it is true. * serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and SERIAL_SET_PROCESS_GROUP. * inflow.c: Use them. * config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h: Define HAVE_TERMIOS. * Various: Remove all use of TIOC*_BROKEN.
Diffstat (limited to 'gdb/ser-go32.c')
-rw-r--r--gdb/ser-go32.c49
1 files changed, 48 insertions, 1 deletions
diff --git a/gdb/ser-go32.c b/gdb/ser-go32.c
index 8689e24..ff1bdf1 100644
--- a/gdb/ser-go32.c
+++ b/gdb/ser-go32.c
@@ -266,6 +266,14 @@ go32_open (scb, name)
return 0;
}
+static int
+go32_flush_output (scb)
+ serial_t scb;
+{
+ /* No need to flush, because there is no buffering. */
+ return 0;
+}
+
static void
go32_raw (scb)
serial_t scb;
@@ -311,6 +319,24 @@ go32_set_tty_state(scb, ttystate)
}
static int
+go32_noflush_set_tty_state (scb, new_ttystate, old_ttystate)
+ serial_t scb;
+ serial_ttystate new_ttystate;
+ serial_ttystate old_ttystate;
+{
+ return 0;
+}
+
+static void
+go32_print_tty_state (scb, ttystate)
+ serial_t scb;
+ serial_ttystate ttystate;
+{
+ /* Nothing to print. */
+ return;
+}
+
+static int
go32_setbaudrate (scb, rate)
serial_t scb;
int rate;
@@ -319,6 +345,15 @@ go32_setbaudrate (scb, rate)
}
static int
+go32_set_process_group (scb, ttystate, group)
+ serial_t scb;
+ serial_ttystate ttystate;
+ int group;
+{
+ return 0;
+}
+
+static int
go32_write (scb, str, len)
serial_t scb;
const char *str;
@@ -343,13 +378,25 @@ static struct serial_ops go32_ops =
go32_close,
go32_readchar,
go32_write,
+ go32_flush_output,
go32_raw,
go32_get_tty_state,
go32_set_tty_state,
- go32_setbaudrate
+ go32_print_tty_state,
+ go32_noflush_set_tty_state,
+ go32_setbaudrate,
+ go32_set_process_group
};
+/* There is never job control on go32. */
+int
+gdb_setpgid ()
+{
+ return 0;
+}
+
_initialize_ser_go32 ()
{
+ job_control = 0;
serial_add_interface (&go32_ops);
}