mcheck/mtrace for c++

Ulrich Drepper drepper@redhat.com
Wed Feb 6 12:52:00 GMT 2002


ahoward <ahoward@fsl.noaa.gov> writes:

> however, the second line shows this does not work with c++, since only the
> call to malloc from within new is shown.  i'm trying to implement
> something similar for c++ and have attempted to use the following code to
> register a new_handler, it comipiles fine and runs as well - but the
> handler does not get registered (output does not show up).

mtrace so far only reports the direct caller.  This will hopefully
change for glibc 2.3.  If you volunteer to work on this it'll happen
for such.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------



More information about the Libstdc++ mailing list