* ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 1 Jul 1993 18:22:02 +0000 (18:22 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 1 Jul 1993 18:22:02 +0000 (18:22 +0000)
print c_line.
(_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
is defined; don't care what it is defined to.

gdb/ChangeLog
gdb/ser-unix.c

index ae2ff85942bcab34249ab5e614587effd7e6bf83..ab06773bb44377e5a3cc4b01e66482f98cc92eeb 100644 (file)
@@ -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.
index e88fbb7ab7893a68b77f7b2c569909f529fd3086..dbd51dfec4383b488917423dbf34711faba70761 100644 (file)
@@ -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
This page took 0.0371 seconds and 4 git commands to generate.