aboutsummaryrefslogtreecommitdiff
path: root/mmalloc/mmalloc.h
AgeCommit message (Collapse)AuthorFilesLines
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+62
1999-04-16Initial creation of sourceware repositoryStan Shebs1-61/+0
1996-07-11 * detach.c (mmalloc_detach): Fix bug in computation of negativeFred Fish1-1/+9
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.
1995-11-05 * configure.in: add check for stddef.hJason Molenda1-1/+1
* mmalloc.h: include stddef.h if HAVE_STDDEF_H is defined.
1995-11-05 * configure.in: add AC_HEADER_STDC check.Jason Molenda1-338/+12
* 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.
1992-04-08Only redefine size_t and CHAR_BIT if they are not already defined.Fred Fish1-3/+6
1992-04-07Get rid of the other half of the ugly kludge as well...Fred Fish1-5/+0
1992-04-07Get rid of include of <stdlib.h>, which is not guaranteed to be presentFred Fish1-17/+0
even when __STDC__ is defined. This also causes the ugly malloc/realloc/etc kludge to go away.
1992-04-01Add kludge to work around broken <stdlib.h> in gcc installation on Suns.Fred Fish1-0/+398
Fixup some comments in mcalloc, mfree, mmalloc, and mrealloc.