[PATCH] Do not expose stub types to Python
Tom Tromey
tromey@adacore.com
Thu Sep 26 14:26:00 GMT 2019
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> dwarf2read.c will create stub types for Ada "Taft Amendment" types.
Tom> These stub types can currently be exposed to Python code, where they
Tom> show up as TYPE_CODE_VOID types (but that, mysteriously, can sometimes
Tom> be used in other ways).
Tom> While it's possible to work with such types by using strip_typedefs,
Tom> this seemed unpleasant to me. This patch takes another approach
Tom> instead, which is to try not to expose stub types to Python users.
Tom> gdb/ChangeLog
Tom> 2019-08-22 Tom Tromey <tromey@adacore.com>
Tom> * python/py-type.c (type_to_type_object): Call check_typedef
Tom> for stub types.
I'm checking this in now.
Tom
More information about the Gdb-patches
mailing list