Mail Archives: djgpp-workers/2003/04/22/08:09:05.2
Hello.
Eli Zaretskii wrote:
>
> > Date: Mon, 21 Apr 2003 11:59:53 -0400
> > From: CBFalconer <cbfalconer AT yahoo DOT com>
[snip]
> > typedef enum (DBG_OFF = 0, DBG_HOOKS = 1, DBG_VERIFY = 2,
> > DBG_AUTOVERIFY = 6, DBG_CATCH = 14,
> > DBG_FREENULL = 16) DBGKIND;
> >
> > and free the code from dependance on arbitrary magic numbers.
>
> I don't have access to a Unix box from where I type this: could
> someone please look on Linux or SunOS/Solaris and see if they have
> simple numbers, like 0, 1, 2, 3, etc. for malloc debug levels?
I couldn't see any hooks in glibc 2.1.3 (on Redhat 6.2). Perhaps glibc 2.2
(e.g.: on Redhat 7, 8) or 2.3 (e.g.: on Redhat 9) do. If I boot Redhat 8
sometime, I'll take a look at it. I don't have access to Unix or any other
Linuces at the moment.
> > DBGKIND malloc_debug(DBGKIND level);
>
> This should be compatible to libmalloc.a on Unix systems, so again,
> please someone look at man pages on such a system and tell what is
> the prototype of malloc_debug, if there is any.
glibc 2.1.3 doesn't seem to have this function. It does have mallinfo, though.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -