This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mcheck/mtrace for c++


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]