vtable binary format

Falk Hueffner hueffner@informatik.uni-tuebingen.de
Mon Mar 22 16:39:00 GMT 2004


Dustin Lang <dalang@cs.ubc.ca> writes:

> Given a class, I'd like to be able to find out what its vtable will
> look like in memory.  What I need to do is find out which function
> corresponds to a given offset in the vtable.  Apparently the vtable
> stuff varies between compilers and between g++ versions, but I don't
> need to solve the problem in general, only for a particular version
> (2.95) of g++.

I'm not sure this is documented properly anywhere. Documentation for
the current version can be found at
http://www.codesourcery.com/cxx-abi/. This version is supposedly
stable and supported also by some other compilers, so I'd advise you
to upgrade.

-- 
	Falk



More information about the Gcc-help mailing list