Date: Fri, 14 Sep 2001 10:25:41 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: Eric Rudd Message-Id: <1438-Fri14Sep2001102541+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp AT delorie DOT com In-reply-to: <3BA1292B.C593DFD8@cyberoptics.com> (message from Eric Rudd on Thu, 13 Sep 2001 16:46:19 -0500) Subject: Re: Heap structure References: <3BA1292B DOT C593DFD8 AT cyberoptics DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Eric Rudd > Organization: CyberOptics > Date: Thu, 13 Sep 2001 16:46:19 -0500 > > I would like to write a subroutine that walks the heap and checks its > integrity, so that I can isolate the bug. Another correspondent to > c.o.m.d. was interested in writing a heap-checker some time ago, but I > haven't heard any more about it. This has been done already for the next DJGPP version. Check out the file malloc.c and (the new) files malldbg.c and xmalloc.h from the CVS (http://www.delorie.com/djgpp/cvs.html), and use them. If you find some functionality missing from there, please feel free to add it ;-) Oh, and check out the new malloc.txh as well: it documents the new functions and the new features of the old functions.