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

Tom Tromey tromey@redhat.com
Mon Sep 27 19:07:00 GMT 2010


>>>>> "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



More information about the Gdb-patches mailing list