|
From: Doug R. <df...@nl...> - 2004-02-18 17:50:40
|
On Wed, 2004-02-18 at 17:41, Jeremy Fitzhardinge wrote:
> On Wed, 2004-02-18 at 08:15, Josef Weidendorfer wrote:
> > With debug info, you can catch malloc() calls at instrumentation of first
> > basic block: make the instrumentation to be a JMP to a replacement function.
> > This should also work in the shared library case.
> >
> > Isn't this already done ("kludge") in some cases?
>
> It already does this for libc's malloc. BTW, you don't need full debug
> info, just a symbol table.
Oh - I assumed this didn't work for static programs. Last time I ran a
static program, V started complaining about bitmap nits inside FreeBSD's
malloc. Looks like a bug in the FreeBSD version :-(
|