]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-09-07 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Tue, 7 Sep 2004 21:55:12 +0000 (21:55 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 7 Sep 2004 21:55:12 +0000 (21:55 +0000)
* vx-share/wait.h: Delete #ifdef USG.
* utils.c (request_quit): Ditto.
* tui/tui.c (tui_reset): Ditto.
* remote.c: Ditto.
* remote-sds.c: Ditto.
* remote-rdi.c: Ditto.
* mdebugread.c: Ditto.
* m68klinux-nat.c: Ditto.
* infttrace.c: Ditto.
* infptrace.c: Ditto.
* i386v-nat.c: Ditto.
* exec.c: Ditto.
* dbxread.c: Ditto.
* core-aout.c: Ditto.

15 files changed:
gdb/ChangeLog
gdb/core-aout.c
gdb/dbxread.c
gdb/exec.c
gdb/i386v-nat.c
gdb/infptrace.c
gdb/infttrace.c
gdb/m68klinux-nat.c
gdb/mdebugread.c
gdb/remote-rdi.c
gdb/remote-sds.c
gdb/remote.c
gdb/tui/tui.c
gdb/utils.c
gdb/vx-share/wait.h

index 91d851e12e28d69f44ea691e7c453bc8007038be..a610ad9838b74d247d452b478124307ac8c4eeab 100644 (file)
@@ -1,3 +1,20 @@
+2004-09-07  Andrew Cagney  <cagney@gnu.org>
+
+       * vx-share/wait.h: Delete #ifdef USG.
+       * utils.c (request_quit): Ditto.
+       * tui/tui.c (tui_reset): Ditto.
+       * remote.c: Ditto.
+       * remote-sds.c: Ditto.
+       * remote-rdi.c: Ditto.
+       * mdebugread.c: Ditto.
+       * m68klinux-nat.c: Ditto.
+       * infttrace.c: Ditto.
+       * infptrace.c: Ditto.
+       * i386v-nat.c: Ditto.
+       * exec.c: Ditto.
+       * dbxread.c: Ditto.
+       * core-aout.c: Ditto.
+
 2004-09-05  Joel Brobecker  <brobecker@gnat.com>
 
        * mips-tdep.c (mips_insn16_frame_cache): Fix parameter in call to
index 22469263f506b225bd00ba0cd001387ee02cef55..659c8180f1926ee048d9058b4bab46cb503b2c82 100644 (file)
 #include "regcache.h"
 
 /* These are needed on various systems to expand REGISTER_U_ADDR.  */
-#ifndef USG
 #include "gdb_dirent.h"
 #include <sys/file.h>
 #include "gdb_stat.h"
 #include <sys/user.h>
-#endif
 
 #ifndef CORE_REGISTER_ADDR
 #define CORE_REGISTER_ADDR(regno, regptr) register_addr(regno, regptr)
index e537744338d3296231721297c7841ea56f6f740f..5436d4a3cbe4c460e2ca67db864e7873af03438c 100644 (file)
@@ -37,7 +37,7 @@
 #include "defs.h"
 #include "gdb_string.h"
 
-#if defined(USG) || defined(__CYGNUSCLIB__)
+#if defined(__CYGNUSCLIB__)
 #include <sys/types.h>
 #include <fcntl.h>
 #endif
index e0652fbaec15a5bf10f77767dccc5beff5296804..4ff345a5bfa807930e08dd70360325605a2c8271 100644 (file)
 #include "value.h"
 #include "exec.h"
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include <fcntl.h>
 #include "readline/readline.h"
 #include "gdb_string.h"
index 678eabc346d9a56601f3ac4f346bd4f88ec16113..bae840626cdc52b2475b1f84ddf4e73035855a95 100644 (file)
 #include "language.h"
 #include "gdbcore.h"
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <signal.h>
index 0c59d8f481a788704663d12b0d4166561ab11121..fb7736c2fc5f9afda342ba8efb869d3adc30e72d 100644 (file)
 #include "gdb_wait.h"
 #include "gdb_string.h"
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include <sys/param.h>
 #include "gdb_dirent.h"
 #include <signal.h>
index d62c4bd6803cd353af779be322dc1f2026b7c7e6..fcb4d028bd9d172a911716cbc86d4cab52c9d274 100644 (file)
 #undef  NO_FLAGS
 #endif
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <signal.h>
index 70a40b70f7d6b1bdda902fb41cbbfbbeff0faff7..30a4c9deae8f82d0d037a400b91cb39e6f398a6e 100644 (file)
 
 #include "m68k-tdep.h"
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <signal.h>
index c0165aba53656a898b4a8992bc05affc2345ded4..5207b7e3930dc38c0f352b9c07d95d459a344454 100644 (file)
@@ -76,10 +76,6 @@ typedef struct mips_extra_func_info
 #endif
 #endif
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include "gdb_stat.h"
 #include "gdb_string.h"
 
index 50d1fbf7c12afcd34716089fa5f29017c3fa6c9f..1c14a03b43f705790f06f56c559cbfb7af2e7d54 100644 (file)
 #include "regcache.h"
 #include "arm-tdep.h"
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include <signal.h>
 
 #include "rdi-share/ardi.h"
index 7f16c74666ac7d0ad7bebccfeb3c98035136f9de..5b4b3898adb9e30b0c0d7c876854aaa0a6060749 100644 (file)
 #include "gdbcore.h"
 #include "regcache.h"
 
-#ifdef USG
-#include <sys/types.h>
-#endif
-
 #include <signal.h>
 #include "serial.h"
 
index 30ae26dce96e76f594fa998414133fbdde53311d..a081064f15f906776a376c6ece5f679c6310616c 100644 (file)
@@ -43,9 +43,6 @@
 
 #include <ctype.h>
 #include <sys/time.h>
-#ifdef USG
-#include <sys/types.h>
-#endif
 
 #include "event-loop.h"
 #include "event-top.h"
index d88998a9a8025cce7ba3781ccf8db40d11d5c9c4..e9a9b1b99f22d54a42b74f1aee2d7fa675b0e385 100644 (file)
@@ -485,9 +485,9 @@ tui_reset (void)
      ** reset the teletype mode bits to a sensible state.
      ** Copied tset.c
    */
-#if ! defined (USG) && defined (TIOCGETC)
+#if defined (TIOCGETC)
   struct tchars tbuf;
-#endif /* !USG && TIOCGETC */
+#endif /* TIOCGETC */
 #ifdef UCB_NTTY
   struct ltchars ltc;
 
@@ -503,7 +503,6 @@ tui_reset (void)
       ioctl (FILEDES, TIOCSLTC, &ltc);
     }
 #endif /* UCB_NTTY */
-#ifndef USG
 #ifdef TIOCGETC
   ioctl (FILEDES, TIOCGETC, &tbuf);
   tbuf.t_intrc = CHK (tbuf.t_intrc, CTRL ('?'));
@@ -520,27 +519,6 @@ tui_reset (void)
 #endif /* CBREAK */
                     | VTDELAY | ALLDELAY);
   mode.sg_flags |= XTABS | ECHO | CRMOD | ANYP;
-#else /*USG */
-  ioctl (FILEDES, TCGETA, &mode);
-  mode.c_cc[VINTR] = CHK (mode.c_cc[VINTR], CTRL ('?'));
-  mode.c_cc[VQUIT] = CHK (mode.c_cc[VQUIT], CTRL ('\\'));
-  mode.c_cc[VEOF] = CHK (mode.c_cc[VEOF], CTRL ('D'));
-
-  mode.c_iflag &= ~(IGNBRK | PARMRK | INPCK | INLCR | IGNCR | IUCLC | IXOFF);
-  mode.c_iflag |= (BRKINT | ISTRIP | ICRNL | IXON);
-  mode.c_oflag &= ~(OLCUC | OCRNL | ONOCR | ONLRET | OFILL | OFDEL |
-                   NLDLY | CRDLY | TABDLY | BSDLY | VTDLY | FFDLY);
-  mode.c_oflag |= (OPOST | ONLCR);
-  mode.c_cflag &= ~(CSIZE | PARODD | CLOCAL);
-#ifndef hp9000s800
-  mode.c_cflag |= (CS8 | CREAD);
-#else /*hp9000s800 */
-  mode.c_cflag |= (CS8 | CSTOPB | CREAD);
-#endif /* hp9000s800 */
-  mode.c_lflag &= ~(XCASE | ECHONL | NOFLSH);
-  mode.c_lflag |= (ISIG | ICANON | ECHO | ECHOK);
-  ioctl (FILEDES, TCSETAW, &mode);
-#endif /* USG */
 
   return;
 }
index be99780cf69ca0d0424594ea697f2d458925038e..e350c25d1af96969e36378aac22614aa67b4b44c 100644 (file)
@@ -974,9 +974,8 @@ void
 request_quit (int signo)
 {
   quit_flag = 1;
-  /* Restore the signal handler.  Harmless with BSD-style signals, needed
-     for System V-style signals.  So just always do it, rather than worrying
-     about USG defines and stuff like that.  */
+  /* Restore the signal handler.  Harmless with BSD-style signals,
+     needed for System V-style signals.  */
   signal (signo, request_quit);
 
   if (immediate_quit)
index cb8d1b5bbaac7b0729add88efefc4ce4b806f4a0..f4670c0d050fbbfc8a57686759923c29a30e36a0 100644 (file)
@@ -10,9 +10,9 @@ modification history
 01a,05jun90,llk  borrowed.
 */
 
-/* Define how to access the structure that the wait system call stores.
-   On many systems, there is a structure defined for this.
-   But on vanilla-ish USG systems there is not.  */
+/* Define how to access the structure that the wait system call
+   stores.  On many systems, there is a structure defined for
+   this.  */
 
 #ifndef HAVE_WAIT_STRUCT
 #define WAITTYPE int