This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

Re: [patch] Fix infinite loop crash on self-referencing class


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> 2010-09-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
Jan> 	Fix GDB crash on inferior calls with self-referencing classes.
Jan> 	* gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
Jan> 	member fields.

This seems reasonable to me.

Jan> +    if (TYPE_FIELD_LOC_KIND (type, fieldnum) == FIELD_LOC_KIND_BITPOS

There is a field_is_static convenience function you can use here.

Tom


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