IRIX GCC fixes from 5.0 branch.
authorAndrew Cagney <cagney@redhat.com>
Tue, 23 May 2000 07:49:05 +0000 (07:49 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 23 May 2000 07:49:05 +0000 (07:49 +0000)
gdb/ChangeLog
gdb/TODO
gdb/configure.in
gdb/proc-api.c

index 9bc8ef13aee5105816d24d5443b8827cfc243b6d..f14b47fd3ef4ef299794ead602058bf76614fda0 100644 (file)
@@ -1,3 +1,14 @@
+Tue May 23 17:44:18 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       From Mon May 8 14:49:51 2000 Andrew Cagney <cagney@b1.cygnus.com>
+       (gdb 5.0): From Michael Paddon <mmpp@esec.com.au>:
+       * configure.in (AC_CHECK_HEADERS): Check for <sys/user.h>.
+       * configure: Re-generate.
+       * proc-api.c: Only include <sys/user.h> when available.
+       (ioctl_table): Check that PIOCGETPR and PIOCGETU are defined.
+
+       * TODO: Update.
+
 2000-05-17  Andrew Cagney  <cagney@sourceware.cygnus.com>
 
        * GDB 5.0 released.
index 6eefc009786a4525a74c8c12ae9ea6fc3395c68d..f9205f3971ad6704684d292f50ea3245179f2d83 100644 (file)
--- a/gdb/TODO
+++ b/gdb/TODO
@@ -15,16 +15,12 @@ release.
 
 --
 
-GDB doesn't build under IRIX6.4
+GDB requires GCC to build under IRIX
 
-Benjamin Gamsa wrote:
+IRIX, being more pedantic than GCC reports as errors certain
+assignments that GCC treats as warnings.
 
-Has anyone successfully built the latest (from cvs) gdb on IRIX6.4 or
-later?  The first problem I hit is that proc-api.c includes
-sys/user.h, which no longer exists under IRIX6.4.  If I comment out
-that include, the next problem I hit is that PIOCGETPR and PIOCGETU
-are no longer defined in IRIX6.4 (presumably related to the
-disappearance of user.h).
+This can be worked around by building GDB with the GCC compiler.
 
 --
 
index 468a07e2b2deec90b2a405635e4d914ca9a51a54..c58eb355041ecceb28745923d4e9dbed1258d9df 100644 (file)
@@ -102,7 +102,7 @@ AC_CHECK_HEADERS(ctype.h curses.h endian.h link.h thread_db.h proc_service.h \
        string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
        term.h termio.h termios.h unistd.h wait.h sys/wait.h \
        wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
-       time.h sys/ioctl.h)
+       time.h sys/ioctl.h sys/user.h)
 AC_HEADER_STAT
 
 AC_C_CONST
index 771a28e6374bdd924b0821c77dfa08208957024b..cf12d424d6559db0716bc5542c1bd6fb13d359df 100644 (file)
@@ -36,7 +36,9 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include <sys/types.h>
 #include <sys/procfs.h>
 #include <sys/proc.h>  /* for struct proc */
+#ifdef HAVE_SYS_USER_H
 #include <sys/user.h>  /* for struct user */
+#endif
 #include <fcntl.h>     /* for O_RDWR etc. */
 #include <sys/wait.h>
 
@@ -118,8 +120,12 @@ static struct trans ioctl_table[] = {
   { PIOCGETPTIMER,   "PIOCGETPTIMER",   "get process timers" },
 #endif /* irix event counters */
   { PIOCGENTRY,    "PIOCGENTRY",   "get traced syscall entry set" },
+#if defined (PIOCGETPR)
   { PIOCGETPR,     "PIOCGETPR",    "read struct proc" },
+#endif
+#if defined (PIOCGETU)
   { PIOCGETU,      "PIOCGETU",     "read user area" },
+#endif
 #if defined (PIOCGETUTK) && (defined(KERNEL) || defined(SHOW_UTT)) /* osf */
   { PIOCGETUTK,  "PIOCGETUTK", "get the utask struct" },
 #endif
This page took 0.032712 seconds and 4 git commands to generate.