38 Commits

Author SHA1 Message Date
d3229ae3bd * mmalloc/Makefile.in (install-info): Make sure $(infodir) exists.
Run install-info program on the installed Info files.
	* gdb/doc/Makefile.in (install-info): Run install-info on installed
	Info files.
2000-05-17 11:45:56 +00:00
cbb1a37c34 * Makefile.in (install): Append "n", not ".n" to libmmalloc.a,
since the latter loses on DOS 8+3 filesystems.
2000-03-20 10:31:58 +00:00
8860ff2e51 Add MAINTAINERS file to mmalloc directory - part of GDB and maintained
by GDB's Host maintainers.
2000-02-28 00:22:03 +00:00
ff4e7bb239 * build fix for cygwin
2000-02-18  Frank Ch. Eigler  <fche@redhat.com>

	From Jason "crash" Molenda <jsm@cygnus.com>:
	* configure.in: Check for getpagesize declaration.
	* mvmalloc.c, mmap-sup.c: Conditionally declare getpagesize.
	* configure: Regenerated.
2000-02-19 00:44:46 +00:00
9365c12ca3 From 2000-02-17 RodneyBrown@pmsc.com:
mm.c, attach.c, mmap-sup.c, sbrk-sup.c: Include <unistd.h> for sbrk
and lseek declarations.
2000-02-18 01:39:02 +00:00
dfcd3bfb6f import gdb-2000-02-04 snapshot 2000-02-05 07:30:26 +00:00
c906108c21 Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
071ea11e85 Initial creation of sourceware repository 1999-04-16 01:34:07 +00:00
c1f36721f4 * configure configure.in: Don't default CC to cc. It causes problems
when starting a compile in the mmalloc directory.
1996-09-05 01:06:10 +00:00
56f0ef83a6 * mmap-sup.c (mmalloc_findbase): Change to not require /dev/zero
if MMAP_ANONYMOUS is available.
1996-07-13 05:24:44 +00:00
7f12eb53ca * detach.c (mmalloc_detach): Fix bug in computation of negative
brk value.
	* mmcheck.c (mmcheckf): Renamed from mmcheck and new FORCE argument
	added.  Replaced hack that always allowed checking routines to be
 	installed and enforce restriction that they have to be installed
	prior to allocating any memory on the used heap or the FORCE argument
	has to be non-NULL.
	(mmcheck): New function that calls mmcheckf with FORCE set to zero,
	for backwards compatibility.
	* mmalloc.c (malloc): Store result in local variable before
	returning it.  Makes debugging much easier at negligible cost.
	* mmalloc.h (mmcheckf): Declare.
	* attach.c (reuse): Call mmcheckf rather than mmcheck.
	* mmap-sup.c (__mmalloc_mmap_morecore): Improve to allow mmap
	to select a base mapping address if none is otherwise given.
	(mmalloc_findbase): New function that user can call to find
	an available mapping address of a given size.
1996-07-11 07:36:27 +00:00
55d896ee40 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
Use autoconf-set values.
        (docdir): Removed.
        * configure.in (AC_PREREQ): autoconf 2.5 or higher.
        * configure: Rebuilt.
1996-06-25 13:57:19 +00:00
452ad97eb9 * mmalloc.h (mmtrace): Add prototype. 1996-03-30 05:46:57 +00:00
68bfaddafe * configure.in: AC_CHECK_HEADERS, not AC_CHECK_HEADER.
Sigh.  It's one of those days.
1995-11-05 08:28:20 +00:00
89097c5bc5 * configure.in: add check for stddef.h
* mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined.
1995-11-05 08:15:15 +00:00
c93a17b7ab * configure.in: add AC_HEADER_STDC check.
* mmalloc.h: check if STDC_HEADERS instead of __STDC__.

        * mmprivate.h: check if STDC_HEADERS instead of __STDC__.

This change is necessary to build under AIX 3.2.5 w/ cc after Stan's
Oct 24 change.  I'm not convinced that changing mmalloc.h in this way
is such a good thing--if a directory that doesn't use autoconf (or one
that DOES use autoconf but doesn't put all the defines on the command
line), and it includes mmalloc.h, the right thing won't happen.

I believe gdb is the only directory which uses mmalloc, though, so
it should be OK.
1995-11-05 03:12:15 +00:00
43b428a7bf * mmprivate.h: Remove declarations (PTR, etc) that are already
provided by ansidecl.h, include mmalloc.h earlier in file.
1995-10-24 20:21:58 +00:00
17b05a2478 * Makefile.in, configure.in: Converted to use autoconf.
* configure: New file, generated with autoconf 2.3.
* config/{mh-go32, mh-irix, mh-ncr3000, mh-sunos4,
  mh-sysv4}: Removed.
1995-05-04 00:21:18 +00:00
18bea424b7 * mmprivate.h: New file, was mmalloc.h.
(mmalloc.h): Include.
	* mmalloc.h: Remove all but declarations of mmalloc functions.
	(ansidecl.h): Include.
	* attach.c, et al: Include mmprivate.h instead of mmalloc.h.
1994-10-28 23:53:29 +00:00
58cf370c11 * mmalloc.texi: Fix typo ("for for" -> "for"). 1993-11-01 20:28:46 +00:00
0cd1a8d2aa * Makefile.in (TAGS): make work when srcdir != objdir. 1993-07-16 22:28:12 +00:00
1049dd2087 * attach.c, detach.c: Include <sys/types.h> before <fcntl.h>. 1993-07-15 13:01:31 +00:00
5f8d4bcbb9 consistent use of -solaris2* 1993-03-13 03:09:19 +00:00
d5dcef6346 use canonical triple 1992-10-02 07:13:29 +00:00
bc22f7de0c * mmalloc.h (struct mdesc): Add FIXME comments to point out the
need to save some data on a per-process basis for mapped regions
	that are shared.
	* attach.c (reuse):  Update the morecore field for reused mapped
	regions to be correct for the current process.
1992-06-30 23:45:42 +00:00
e33e766a1a * mmtrace.c: Lint. 1992-06-29 23:38:26 +00:00
4ae6ed3a9e Avoid ANSI C "empty translation unit" idiocy. 1992-06-13 06:04:03 +00:00
84d6c527c1 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL using
/usr/ucb/install.
1992-06-10 02:10:02 +00:00
f8a6ad66f0 pass CFLAGS, remove MINUS_G, default CFLAGS to -g 1992-04-21 04:07:29 +00:00
c5b61136ef Recognize new ncr3000 config. Add MINUS_G macro, default to -g. 1992-04-11 06:01:07 +00:00
1a33f7c62e Fix prototype for pointer to function to get more core. 1992-04-08 16:37:44 +00:00
fa128a27ab Only redefine size_t and CHAR_BIT if they are not already defined. 1992-04-08 05:17:56 +00:00
aafba48f94 Get rid of include of <stdlib.h>, which is not guaranteed to be present
even when __STDC__ is defined.  This also causes the ugly malloc/realloc/etc
kludge to go away.
1992-04-07 03:53:12 +00:00
6f2a109c2c * detach.c (mmalloc_detach): Arg should be PTR, not void *.
Fixes complaints from non __STDC__ systems.
1992-04-06 23:35:26 +00:00
9640d88754 Add kludge to work around broken <stdlib.h> in gcc installation on Suns.
Fixup some comments in mcalloc, mfree, mmalloc, and mrealloc.
1992-04-01 19:49:00 +00:00
01fb5bca1c Document requirements for calling mmcheck to install corruption checking
hooks and set up to enforce the requirements.  However, we still allow
unconditional installation until some complications are resolved.
1992-03-27 01:11:08 +00:00
00b6671ff2 added standard targets, fixed install directories 1992-03-25 07:41:41 +00:00
63abb1e790 New memory malloc malloc library, based on GNU malloc. 1992-03-15 02:16:01 +00:00