aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1995-08-01 20:14:27 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1995-08-01 20:14:27 +0000
commit2b57629364528ef2fd913154e58f626123d51f1c (patch)
tree649b55da772d6aa5e9190ebcfa4bee6a5a31f998 /gdb/config
parenta1bdcf913a6f7ee2bbb715dd48b1a75e10a43414 (diff)
downloadgdb-2b57629364528ef2fd913154e58f626123d51f1c.zip
gdb-2b57629364528ef2fd913154e58f626123d51f1c.tar.gz
gdb-2b57629364528ef2fd913154e58f626123d51f1c.tar.bz2
* configure.in: Check for working mmap, ansi headers, string.h,
strings.h, and memory.h. * configure: Regenerated. * gdb_stat.h: New file, "portable" <sys/stat.h>. * gdb_string.h: New file, "portable" <string.h>. * altos-xdep.c, arm-tdep.c, arm-xdep.c, convex-tdep.c, convex-xdep.c, coredep.c, cxux-nat.c, dbxread.c, exec.c, gould-xdep.c, hppa-tdep.c, i386aix-nat.c, i386b-nat.c, i386mach-nat.c, i386v-nat.c, infptrace.c, m88k-nat.c, main.c, mdebugread.c, objfiles.c, os9kread.c, procfs.c, pyr-xdep.c, rs6000-nat.c, source.c, standalone.c, stuff.c, sun386-nat.c, symfile.c, symm-nat.c, symm-tdep.c, symtab.c, top.c, ultra3-nat.c, ultra3-xdep.c, umax-xdep.c, xcoffread.c: Include "gdb_stat.h" instead of <sys/stat.h>. * alpha-tdep.c, breakpoint.c, buildsym.c, c-typeprint.c, ch-typeprint.c, coffread.c, command.c, core-sol2.c, core-svr4.c, core.c, corelow.c, cp-valprint.c, dbxread.c, dcache.c, demangle.c, dpx2-nat.c, dstread.c, dwarfread.c, elfread.c, environ.c, eval.c, exec.c, f-lang.c, f-typeprint.c, f-valprint.c, findvar.c, fork-child.c, gdbtypes.c, hpread.c, i386-tdep.c, infcmd.c, inflow.c, infptrace.c, infrun.c, irix5-nat.c, language.c, m2-typeprint.c, main.c, mdebugread.c, minsyms.c, mipsread.c, monitor.c, nlmread.c, objfiles.c, os9kread.c, osfsolib.c, parse.c, printcmd.c, procfs.c, regex.c, remote-adapt.c, remote-arc.c, remote-array.c, remote-bug.c, remote-e7000.c, remote-eb.c, remote-es.c, remote-hms.c, remote-mm.c, remote-os9k.c, remote-pa.c, remote-sim.c, remote-st.c, remote-udi.c, remote-utils.c, remote-vx.c, remote-vx29k.c, remote-vx68.c, remote-vx960.c, remote-vxmips.c, remote-vxsparc.c, remote.c, solib.c, somread.c, source.c, stabsread.c, stack.c, symfile.c, symmisc.c, symtab.c, target.c, top.c, typeprint.c, utils.c, valarith.c, valops.c, valprint.c, values.c, xcoffread.c: Include "gdb_string.h" instead of <string.h>. * gdbtk.c: Likewise. * config/xm-sysv4.h, i386/xm-ptx.h, m68k/xm-sun3os4.h, sparc/xm-sun4os4.h (HAVE_MMAP): Removed. * config/xm-lynx.h, config/i386/xm-ptx.h, config/m68k/nm-apollo68b.h, config/m68k/xm-hp300hpux.h, config/mips/xm-irix3.h, config/mips/xm-mips.h, config/mips/xm-news-mips.h, config/mips/xm-riscos.h, config/pa/hppah.h, config/rs6000/xm-rs6000.h, config/sparc/xm-sun4os4.h, config/sparc/xm-sun4sol2.h, config/vax/xm-vaxbsd.h, config/vax/xm-vaxult.h, config/vax/xm-vaxult2.h (MEM_FNS_DECLARED): Removed. * config/mips/xm-irix3.h, config/mips/xm-mips.h, config/pa/xm-hppah.h (memcpy, memset): Removed declarations.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/i386/xm-ptx.h4
-rw-r--r--gdb/config/m68k/nm-apollo68b.h2
-rw-r--r--gdb/config/m68k/xm-hp300hpux.h4
-rw-r--r--gdb/config/m68k/xm-sun3os4.h4
-rw-r--r--gdb/config/mips/xm-irix3.h6
-rw-r--r--gdb/config/mips/xm-mips.h6
-rw-r--r--gdb/config/mips/xm-news-mips.h2
-rw-r--r--gdb/config/mips/xm-riscos.h2
-rw-r--r--gdb/config/pa/xm-hppah.h8
-rw-r--r--gdb/config/rs6000/xm-rs6000.h5
-rw-r--r--gdb/config/sparc/xm-sun4os4.h12
-rw-r--r--gdb/config/sparc/xm-sun4sol2.h4
-rw-r--r--gdb/config/vax/xm-vaxbsd.h3
-rw-r--r--gdb/config/vax/xm-vaxult.h2
-rw-r--r--gdb/config/vax/xm-vaxult2.h1
-rw-r--r--gdb/config/xm-lynx.h2
-rw-r--r--gdb/config/xm-sysv4.h4
17 files changed, 0 insertions, 71 deletions
diff --git a/gdb/config/i386/xm-ptx.h b/gdb/config/i386/xm-ptx.h
index fe68098..cbf6806 100644
--- a/gdb/config/i386/xm-ptx.h
+++ b/gdb/config/i386/xm-ptx.h
@@ -29,14 +29,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HAVE_WAIT_STRUCT
-#define HAVE_MMAP
-
#undef HAVE_TERMIO
#define HAVE_TERMIOS
#define USG
-#define MEM_FNS_DECLARED
-
#define NEED_POSIX_SETPGID
#define USE_O_NOCTTY
diff --git a/gdb/config/m68k/nm-apollo68b.h b/gdb/config/m68k/nm-apollo68b.h
index c90dfac..85d5a66 100644
--- a/gdb/config/m68k/nm-apollo68b.h
+++ b/gdb/config/m68k/nm-apollo68b.h
@@ -41,5 +41,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
* USER area using the "PEEKUSER" ptrace call.
*/
#define PT_READ_U 3
-
-#define MEM_FNS_DECLARED /* /usr/include/string.h can get it wrong */
diff --git a/gdb/config/m68k/xm-hp300hpux.h b/gdb/config/m68k/xm-hp300hpux.h
index 1719a69..5041c73 100644
--- a/gdb/config/m68k/xm-hp300hpux.h
+++ b/gdb/config/m68k/xm-hp300hpux.h
@@ -46,10 +46,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef USG /* In case it was defined in the Makefile for cplus-dem.c */
#define USG
-/* The mem functions are in <string.h>. */
-#undef MEM_FNS_DECLARED
-#define MEM_FNS_DECLARED 1
-
#define HAVE_TERMIOS
#define REGISTER_ADDR(u_ar0, regno) \
diff --git a/gdb/config/m68k/xm-sun3os4.h b/gdb/config/m68k/xm-sun3os4.h
index f4db6ad..5b62dc9 100644
--- a/gdb/config/m68k/xm-sun3os4.h
+++ b/gdb/config/m68k/xm-sun3os4.h
@@ -20,10 +20,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "m68k/xm-sun3.h"
#define FPU
-/* SunOS 4.x has memory mapped files. */
-
-#define HAVE_MMAP
-
/* If you expect to use the mmalloc package to obtain mapped symbol files,
for now you have to specify some parameters that determine how gdb places
the mappings in it's address space. See the comments in map_to_address()
diff --git a/gdb/config/mips/xm-irix3.h b/gdb/config/mips/xm-irix3.h
index cd7037b..f64e3a5 100644
--- a/gdb/config/mips/xm-irix3.h
+++ b/gdb/config/mips/xm-irix3.h
@@ -22,12 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
-/* memcpy and memset return void *, not char *. */
-
-extern void *memcpy();
-extern void *memset();
-#define MEM_FNS_DECLARED
-
/* Override register locations in upage for SGI machines */
#undef REGISTER_U_ADDR
#define REGISTER_U_ADDR(addr, blockend, regno) \
diff --git a/gdb/config/mips/xm-mips.h b/gdb/config/mips/xm-mips.h
index 9c4b2f8..830644c 100644
--- a/gdb/config/mips/xm-mips.h
+++ b/gdb/config/mips/xm-mips.h
@@ -33,12 +33,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
extern char *strdup();
#endif
-/* DECstation memcpy and memset return void *, not char *. */
-
-extern void *memcpy();
-extern void *memset();
-#define MEM_FNS_DECLARED
-
#if ! defined (__STDC__) && ! defined (offsetof)
# define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
#endif
diff --git a/gdb/config/mips/xm-news-mips.h b/gdb/config/mips/xm-news-mips.h
index 4413782..e0436ee 100644
--- a/gdb/config/mips/xm-news-mips.h
+++ b/gdb/config/mips/xm-news-mips.h
@@ -22,5 +22,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#if !defined (HOST_BYTE_ORDER)
#define HOST_BYTE_ORDER BIG_ENDIAN
#endif
-
-#define MEM_FNS_DECLARED
diff --git a/gdb/config/mips/xm-riscos.h b/gdb/config/mips/xm-riscos.h
index ba3845e..8eece3e 100644
--- a/gdb/config/mips/xm-riscos.h
+++ b/gdb/config/mips/xm-riscos.h
@@ -22,8 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HOST_BYTE_ORDER BIG_ENDIAN
#endif
-#define MEM_FNS_DECLARED
-
#define USG 1
/* setjmp.h requires uid_t. */
diff --git a/gdb/config/pa/xm-hppah.h b/gdb/config/pa/xm-hppah.h
index 64e7524..d4c4a2c 100644
--- a/gdb/config/pa/xm-hppah.h
+++ b/gdb/config/pa/xm-hppah.h
@@ -39,14 +39,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define HAVE_TERMIOS
-/* HP uses non-ANSI definitions, but with void * results. */
-#define MEM_FNS_DECLARED /* Some non-ANSI use void *, not char *. */
-extern void *
-memcpy PARAMS ((void *, const void *, size_t)); /* 4.11.2.1 */
-
-extern void *
-memset PARAMS ((void *, int, size_t)); /* 4.11.6.1 */
-
/* HP defines malloc and realloc as returning void *, even for non-ANSI
compilations (such as with the native compiler). */
diff --git a/gdb/config/rs6000/xm-rs6000.h b/gdb/config/rs6000/xm-rs6000.h
index 64d08ee..e9f6e97 100644
--- a/gdb/config/rs6000/xm-rs6000.h
+++ b/gdb/config/rs6000/xm-rs6000.h
@@ -44,11 +44,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define USG 1
#define HAVE_SIGSETMASK 1
-/* AIX declares the mem functions differently than defs.h does. AIX is
- right, but defs.h works on more old systems. For now, override it. */
-
-#define MEM_FNS_DECLARED 1
-
/* This system requires that we open a terminal with O_NOCTTY for it to
not become our controlling terminal. */
diff --git a/gdb/config/sparc/xm-sun4os4.h b/gdb/config/sparc/xm-sun4os4.h
index 2981c2e..ca94bad 100644
--- a/gdb/config/sparc/xm-sun4os4.h
+++ b/gdb/config/sparc/xm-sun4os4.h
@@ -20,10 +20,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "sparc/xm-sparc.h"
#define FPU
-/* SunOS 4.x has memory mapped files. */
-
-#define HAVE_MMAP
-
/* If you expect to use the mmalloc package to obtain mapped symbol files,
for now you have to specify some parameters that determine how gdb places
the mappings in it's address space. See the comments in map_to_address()
@@ -41,14 +37,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#define MALLOC_INCOMPATIBLE
#include <malloc.h>
-/* acc for SunOS4 comes with string.h and memory.h headers which we
- pick up somewhere (where?) and which use char *, not void *. The
- following should work with acc, gcc, or /bin/cc, at least with
- SunOS 4.1.1. */
-
-#define MEM_FNS_DECLARED
-#include <memory.h>
-
/* SunOS 4.x uses nonstandard "char *" as type of third argument to ptrace() */
#define PTRACE_ARG3_TYPE char*
diff --git a/gdb/config/sparc/xm-sun4sol2.h b/gdb/config/sparc/xm-sun4sol2.h
index de7e10f..b4b3656 100644
--- a/gdb/config/sparc/xm-sun4sol2.h
+++ b/gdb/config/sparc/xm-sun4sol2.h
@@ -51,10 +51,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Solaris PSRVADDR support does not seem to include a place for nPC. */
#define PRSVADDR_BROKEN
-/* The mem functions are in <string.h>. */
-#undef MEM_FNS_DECLARED
-#define MEM_FNS_DECLARED 1
-
/* solaris doesn't have siginterrupt, though it has sigaction; however,
in this case siginterrupt would just be setting the default. */
#define NO_SIGINTERRUPT
diff --git a/gdb/config/vax/xm-vaxbsd.h b/gdb/config/vax/xm-vaxbsd.h
index 68efaac..b42bd70 100644
--- a/gdb/config/vax/xm-vaxbsd.h
+++ b/gdb/config/vax/xm-vaxbsd.h
@@ -8,6 +8,3 @@
#include <sys/param.h>
#include "vax/xm-vax.h"
-
-/* In non-ANSI compiles, memcpy and memset are still void *, not char *. */
-#define MEM_FNS_DECLARED
diff --git a/gdb/config/vax/xm-vaxult.h b/gdb/config/vax/xm-vaxult.h
index 20fd368..24c6437 100644
--- a/gdb/config/vax/xm-vaxult.h
+++ b/gdb/config/vax/xm-vaxult.h
@@ -3,8 +3,6 @@
#include "vax/xm-vax.h"
extern char *strdup();
-#define MEM_FNS_DECLARED
-
/* This is required for Ultrix 3.1b, not for later versions. Ultrix
3.1b can't just use xm-vaxult2.h because Ultrix 3.1b does define
FD_SET. Sure, we could have separate configurations for vaxult2,
diff --git a/gdb/config/vax/xm-vaxult2.h b/gdb/config/vax/xm-vaxult2.h
index f3e2550..d0d3d62 100644
--- a/gdb/config/vax/xm-vaxult2.h
+++ b/gdb/config/vax/xm-vaxult2.h
@@ -3,7 +3,6 @@
#include "vax/xm-vax.h"
extern char *strdup();
-#define MEM_FNS_DECLARED
#define NO_PTRACE_H
/* Old versions of ultrix have fd_set but not the FD_* macros. */
diff --git a/gdb/config/xm-lynx.h b/gdb/config/xm-lynx.h
index 5b9a389..dd9bba3 100644
--- a/gdb/config/xm-lynx.h
+++ b/gdb/config/xm-lynx.h
@@ -20,5 +20,3 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* for INT_MIN, to avoid "INT_MIN redefined" warnings from defs.h */
#include <limits.h>
-
-#define MEM_FNS_DECLARED
diff --git a/gdb/config/xm-sysv4.h b/gdb/config/xm-sysv4.h
index 9d1451d..dbe2538 100644
--- a/gdb/config/xm-sysv4.h
+++ b/gdb/config/xm-sysv4.h
@@ -23,10 +23,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#undef HAVE_TERMIO
#define HAVE_TERMIOS
-/* SVR4 has mmap facilities */
-
-#define HAVE_MMAP
-
/* SVR4 is a derivative of System V Release 3 (USG) */
#define USG