|
From: Patrick J. L. <lop...@gm...> - 2013-03-14 21:18:31
|
On Thu, Mar 14, 2013 at 1:58 PM, Philippe Waroquiers <phi...@sk...> wrote: > On Thu, 2013-03-14 at 19:21 +0000, Phil Longstaff wrote: >> How hard would it be for memcheck to not report a block as being >> potentially lost if the internal pointer could be a pointer to a base >> class? Is there sufficient info in the debug information? > No, I do not think so. Probably correct in general. But... For polymorphic C++ classes -- presumably a common case when you have a pointer to an internal base class -- dynamic_cast<Derived>() has to work somehow. So I would imagine Valgrind could use the same RTTI mechanism. In theory. - Pat |