[haiku-development] Re: Help needed with the unit testing framework

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 28 Jul 2014 20:33:59 +0200

On 28.07.2014 12:54, pulkomandy wrote:
Knowing that this only happens with gcc2, I think it somehow misses the fact
that the method is virtual when compiling the base class, and generates a
direct call instead of a virtual one (going through the vtable).

It's fairly easy to verify/refute that theory by using objdump on the code that invokes the method (objdump -D --demangle ...). If you build with debug info you can even interleave the disassembly with the source code (-S option).

CU, Ingo


Other related posts: