Article View: gnu.gdb.bug
Article #437Suggested patch for gdb-4.6 compilation on SCO Unix 3.2.4
From: Rodney Brown
Date: Sun, 13 Sep 1992 02:20
Date: Sun, 13 Sep 1992 02:20
84 lines
3076 bytes
3076 bytes
This is hardly a bug but more a suggestion to escape SCO's agressive
POSIX compliance where defines not mentioned in the the standard are
excluded from the [A-Z].* namespace.
uname -a
cocamrd cocamrd 3.2 2 i386 (SCO Unix 3.2.4)
gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-sco-sco3.2v4_/2.2.2/specs
gcc version 2.2.2
(specs)
*cpp:
-D__i386 -D_M_I386 -D_M_I86 -D_M_I86SM -D_M_SDATA -D_M_STEXT \
-D__unix -D_M_UNIX -D_M_XENIX -D_M_SYS5 -D_M_SYSV -D_M_SYSV -D_M_SYS3 \
-D_M_SYSIII -D_M_COFF -D_M_BITFIELDS -D_M_WORDSWAP \
%{scoxpg3:-D_XOPEN_SOURCE -D_STRICT_NAMES} \
%{!scoxpg3:%{posix:-D_POSIX_SOURCE -D_STRICT_NAMES}} \
%{!scoxpg3:%{!posix: %{ansi:-D_STRICT_NAMES}%{!ansi: -Di386 -DM_I386 \
-DM_I86 -DM_I86SM -DM_SDATA -DM_STEXT -Dunix -DM_UNIX -DM_XENIX \
-DM_SYS5 -DM_SYSV -D_M_SYSV -DM_SYS3 -DM_SYSIII -DM_COFF -DM_BITFIELDS \
-DM_WORDSWAP %{scointl:-D_M_INTERNAT -DM_INTERNAT} -D__STDC__=0}}}
*endfile:
crtend.o%s %{scoxpg3:crtnX.o%s} %{!scoxpg3: %{posix:crtnP.o%s} \
%{!posix: %{ansi:crtnA.o%s} %{!ansi:crtn.o%s}}}
*startfile:
%{scoxpg3:%{p:mcrt1X.o%s}%{!p:crt1X.o%s}} %{!scoxpg3: \
%{posix:%{p:mcrt1P.o%s}%{!p:crt1P.o%s}} %{!posix: \
%{ansi:%{p:mcrt1A.o%s}%{!p:crt1A.o%s}} \
%{!ansi:%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}}}} crtbegin.o%s
GDB 4.6, Copyright 1992 Free Software Foundation, Inc.
(Makefile)
# This file was generated automatically by configure. Do not edit.
VPATH = .
links = xm.h tm.h
host_alias = sco
host_cpu = i386
host_vendor = unknown
host_os = scosysv322
target_alias = sco
target_cpu = i386
target_vendor = unknown
target_os = scosysv322
target_makefile_frag = config/i386v32.mt
host_makefile_frag = config/i386sco.mh
ALL=all.internal
*** gdb-4.6__gdb__source.c Sat Sep 12 17:39:45 1992
--- source.c Mon Aug 31 21:08:40 1992
***************
*** 32,37 ****
--- 32,40 ----
#include <string.h>
#include <sys/param.h>
#include <sys/stat.h>
+ #ifndef S_ISDIR
+ #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+ #endif
#include <fcntl.h>
#include "gdbcore.h"
#include "regex.h"
***************
*** 351,357 ****
if (name[0] != '$') {
if (stat (name, &st) < 0)
perror_with_name (name);
! if ((st.st_mode & S_IFMT) != S_IFDIR)
error ("%s is not a directory.", name);
}
--- 354,360 ----
if (name[0] != '$') {
if (stat (name, &st) < 0)
perror_with_name (name);
! if (S_ISDIR(st.st_mode))
error ("%s is not a directory.", name);
}
--
Rodney Brown, Co-Cam Computer Group, ACSNet: rdb@mel.cocam.oz.au
Technical Details
Message-ID:
<9209121120.AA27134@cocamrd.mel.cocam.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cocamrd.mel.cocam.oz.AU!rdbShow Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cocamrd.mel.cocam.oz.AU!rdb From: rdb@cocamrd.mel.cocam.oz.AU (Rodney Brown) Subject: Suggested patch for gdb-4.6 compilation on SCO Unix 3.2.4 Message-ID: <9209121120.AA27134@cocamrd.mel.cocam.oz.au> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Sun, 13 Sep 1992 02:20:36 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 85