Re: [AD] malloc

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2005-11-18, Vincent Penecherc'h <Vincent.Penecherch@xxxxxxxxxx> wrote:
> > Anyway, we need a design for user-specified malloc functions. 
> 
> Would these prevent a memory debug library from reporting
> the "right" file/line for an allocation (eg, only reporting
> the inner allegro_malloc or whatever) ?
> Not saying it would, just asking.

It can and I agree it's pretty annoying.  But Valgrind gets it right :-)
Grzegorz's proposal has debug versions of each malloc function which
take the file and line number, which may or may not be helpful to
whatever debug library you're using.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/