Commit graph

54 commits

Author SHA1 Message Date
Eli Zaretskii
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
Eli Zaretskii
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
Andrew Cagney
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
Frank Ch. Eigler
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
Andrew Cagney
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
Jason Molenda
dfcd3bfb6f import gdb-2000-02-04 snapshot 2000-02-05 07:30:26 +00:00
Stan Shebs
7c202dc7f5 Remove pregenerated info file 1999-05-04 18:52:32 +00:00
Stan Shebs
c906108c21 Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
Stan Shebs
9733ab3f56 Initial creation of sourceware repository 1999-04-16 01:34:49 +00:00
Stan Shebs
071ea11e85 Initial creation of sourceware repository 1999-04-16 01:34:07 +00:00
Fred Fish
d6eecef07b * Makefile.in (mm.o): New target that combines all the functions
into a single object module.  This avoids client programs picking
 	up part of the allocation routines from mmalloc and part from libc,
 	which can lead to undefined behavior.
	(CFILES): Add mm.c
	(TARGETOBJS): Define to be either the individual objects or the
	single combined object.
	(TARGETLIB): Create the archive using TARGETOBJS.
	* mm.c: New file that simply #includes the other source C files.
1996-12-28 22:33:53 +00:00
Stu Grossman
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
Fred Fish
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
Fred Fish
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
Jason Molenda
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
Fred Fish
452ad97eb9 * mmalloc.h (mmtrace): Add prototype. 1996-03-30 05:46:57 +00:00
Jason Molenda
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
Jason Molenda
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
Jason Molenda
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
Stan Shebs
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
J.T. Conklin
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
Stan Shebs
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
Jim Kingdon
8a48c3936b * COPYING.LIB: New file (standard version 2 LGPL, as already cited
by the source files).
1993-11-17 04:35:46 +00:00
Jim Kingdon
58cf370c11 * mmalloc.texi: Fix typo ("for for" -> "for"). 1993-11-01 20:28:46 +00:00
Fred Fish
b5ed6e32c2 Remove '.Sanitize' from explicit list of Things-to-lose. It is now implicitly
added to the list by Sanitize, unless Sanitize knows it needs to keep it.
1993-08-02 23:29:32 +00:00
Fred Fish
775d4a4096 Add .Sanitize to Things-to-lose list. 1993-07-30 16:46:19 +00:00
Fred Fish
7ee50446bc Add test1.c to Things-to-lose list. 1993-07-30 07:41:20 +00:00
Jim Kingdon
0cd1a8d2aa * Makefile.in (TAGS): make work when srcdir != objdir. 1993-07-16 22:28:12 +00:00
Jim Kingdon
1049dd2087 * attach.c, detach.c: Include <sys/types.h> before <fcntl.h>. 1993-07-15 13:01:31 +00:00
K. Richard Pixley
87756e15db added things-to-lose sections 1993-05-27 06:44:29 +00:00
Fred Fish
25d9cf0391 Add list of things explicitly sanitize away, and description of each. 1993-05-04 20:15:19 +00:00
David D. Zuhn
5f8d4bcbb9 consistent use of -solaris2* 1993-03-13 03:09:19 +00:00
K. Richard Pixley
017349fbcf recording file death 1992-12-08 05:21:19 +00:00
David D. Zuhn
d5dcef6346 use canonical triple 1992-10-02 07:13:29 +00:00
Fred Fish
41a2a528b9 Go ahead and make the TODO file part of the distribution, so we have a
recognized place to note things which are not yet implemented.
1992-06-30 23:48:44 +00:00
Fred Fish
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
Fred Fish
e33e766a1a * mmtrace.c: Lint. 1992-06-29 23:38:26 +00:00
John Gilmore
4ae6ed3a9e Avoid ANSI C "empty translation unit" idiocy. 1992-06-13 06:04:03 +00:00
Fred Fish
84d6c527c1 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL using
/usr/ucb/install.
1992-06-10 02:10:02 +00:00
K. Richard Pixley
f8a6ad66f0 pass CFLAGS, remove MINUS_G, default CFLAGS to -g 1992-04-21 04:07:29 +00:00
Fred Fish
13b33d2b0a * TODO: New file.
* attach.c, mcalloc.c, mfree.c, mmalloc.c, mmalloc.h, mmap-sup.c,
	mmcheck.c, mtrace.c, mrealloc.c, mvalloc.c, sbrk-sup.c:  Lint.
1992-04-17 03:01:54 +00:00
Fred Fish
c5b61136ef Recognize new ncr3000 config. Add MINUS_G macro, default to -g. 1992-04-11 06:01:07 +00:00
Fred Fish
74e2ef2631 Remove obsolete README file, and update mmalloc.texi to closer reflect
reality.  Minor fix to comment in mmalloc.c.  Remove README from .Sanitize
1992-04-08 21:38:15 +00:00
Fred Fish
1a33f7c62e Fix prototype for pointer to function to get more core. 1992-04-08 16:37:44 +00:00
Fred Fish
fa128a27ab Only redefine size_t and CHAR_BIT if they are not already defined. 1992-04-08 05:17:56 +00:00
Roland Pesch
6e64547b7d keep mmalloc.texi 1992-04-07 23:36:19 +00:00
Roland Pesch
d203e17273 Converted from Fred's original README; no changes in substance. 1992-04-07 23:35:43 +00:00
Fred Fish
f73b6c4867 Get rid of the other half of the ugly kludge as well... 1992-04-07 03:54:54 +00:00
Fred Fish
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
Stu Grossman
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