This patch fixes python/10805. When fields were being constructed, the convert_fields function was not checking if the type was a class before determining if it was a base class. Added a check to gate this behaviour. Additionally, I started a testsuite for Python types. This suite only tests for this regression, but it can be expanded later, in separate efforts. Cheers, Phil -- ChangeLog 2009-10-20 Phil Muldoon PR python/10805 * python/py-type.c (convert_field): Check for TYPE_CODE_CLASS before calling TYPE_N_BASECLASSES. Testsuite ChangeLog 2009-10-20 Phil Muldoon PR python/10805 * gdb.python/py-type.exp: New file. * gdb.python/py-type.c: New file. * Makefile.in: Add py-type.