This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: typeid strangeness
- To: Stefan Seefeld <seefeld at sympatico dot ca>
- Subject: Re: typeid strangeness
- From: Carlo Wood <carlo at alinoe dot com>
- Date: Wed, 18 Jul 2001 17:08:57 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <3B54E701.7030307@sympatico.ca>
On Tue, Jul 17, 2001 at 08:31:45PM -0500, Stefan Seefeld wrote:
> For debugging purposes, I'd like to track these calls, so I
> implement them like this:
...
> #ifdef LCLOG
> Logger::log(Logger::lifecycle) << "ServantBase::_add_ref on " << this << " ("
> << typeid(this).name() << "): new count is " << _refcount << std::endl;
> #endif
You might want to use libcwd instead.
See http://libcw.sourceforge.net/debugging/
--
Carlo Wood <carlo@alinoe.com>