This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Using typeinfo functions to determine RTTI
Jim Blandy <jimb@zwingli.cygnus.com> writes:
> > Sorry i've been inactive, i've been bogged down by finals the past two
> > weeks. I've got a boat load of patches for C++ to commit to the trunk.
>
> Sheesh. Get your priorities straight.
I know.
What was i thinking?
Damnit, how can I be expected to study for abnormal psychology (the
study of my family), or constitutional law, when we've got a release
schedule to meet?
>
> > Does anyone mind if i use the typeinfo functio name, rather than the
> > virtual table name, to figure out th real type of an object? It only
> > matters if someone does -fno-rtti, i believe. But I have no idea how many
> > people actually use that flag to save time/space in debugging
> > executables.
>
> Almost all of Cygnus's customers use GDB to debug embedded apps, and
> space is often an issue there. But I don't actually know how many of
> them use -fno-rtti.
Hmmm.
See, i've never actually run into problems with the way i do it now
(vtables) in real code.
I only noticed the problems when i started trying to get every single
test in virtfunc.exp to pass.
Does anyone actually write class hierarchies like those that are in
virtfunc.cc?
--Dan