From a77a5278a4c669cc96d1d4fe41568a795228ca46 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 1 Jul 1993 18:22:02 +0000 Subject: * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't print c_line. (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL is defined; don't care what it is defined to. --- gdb/ChangeLog | 7 +++++++ gdb/ser-unix.c | 15 +++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ae2ff85..ab06773 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +Thu Jul 1 09:51:27 1993 Jim Kingdon (kingdon@cygnus.com) + + * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't + print c_line. + (_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL + is defined; don't care what it is defined to. + Wed Jun 30 20:06:46 1993 Jim Kingdon (kingdon@lioth.cygnus.com) * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO. diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index e88fbb7..dbd51df 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -273,9 +273,13 @@ hardwire_print_tty_state (scb, ttystate) #ifdef HAVE_TERMIOS printf_filtered ("c_iflag = 0x%x, c_oflag = 0x%x,\n", state->termios.c_iflag, state->termios.c_oflag); - printf_filtered ("c_cflag = 0x%x, c_lflag = 0x%x, c_line = 0x%x.\n", - state->termios.c_cflag, state->termios.c_lflag, - state->termios.c_line); + printf_filtered ("c_cflag = 0x%x, c_lflag = 0x%x\n", + state->termios.c_cflag, state->termios.c_lflag); +#if 0 + /* This not in POSIX, and is not really documented by those systems + which have it (at least not Sun). */ + printf_filtered ("c_line = 0x%x.\n", state->termios.c_line); +#endif printf_filtered ("c_cc: "); for (i = 0; i < NCCS; i += 1) printf_filtered ("0x%x ", state->termios.c_cc[i]); @@ -664,7 +668,10 @@ _initialize_ser_hardwire () /* Do all systems with termios have the POSIX way of identifying job control? I hope so. */ #ifdef _POSIX_JOB_CONTROL - job_control = _POSIX_JOB_CONTROL; + /* AIX defines _POSIX_JOB_CONTROL to an empty string, so I guess + defining _POSIX_JOB_CONTROL to 0 to mean no job control doesn't work + (I don't have the standard handy). */ + job_control = 1; #else job_control = sysconf (_SC_JOB_CONTROL); #endif -- cgit v1.1