This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix python/10805


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 <pmuldoon@redhat.com>

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 <pmuldoon@redhat.com>

PR python/10805

    * gdb.python/py-type.exp: New file.
    * gdb.python/py-type.c: New file.
    * Makefile.in: Add py-type.


Attachment: pr10805.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]