This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
crasher in C++ ABI code
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: jimb at redhat dot com, drow at mvista dot com
- Date: Thu, 12 Sep 2002 17:23:16 -0700
- Subject: crasher in C++ ABI code
- Organization: Red Hat, Inc.
Attention, all you c++_abi_savvy folk...
I found a crasher bug while running the gdb testsuite on a COFF
toolchain. TYPE_VPTR_FIELDNO returned -1; I haven't looked into
this mechanism, but I assume that's a mistake. When it was applied
via value_field, of course it yielded a garbage value.
So looking at coffread.c, I see that there are no references
to vptr_fieldno nor vptr_basetype -- these fields are never
initialized.
I'm just wondering where to go from here. Is it possible to
obtain these values from COFF? If not, perhaps their access
methods should check for an invalid value?
Michael