This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix infinite loop crash on self-referencing class
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 27 Sep 2010 12:02:37 -0600
- Subject: Re: [patch] Fix infinite loop crash on self-referencing class
- References: <20100924230028.GA24736@host1.dyn.jankratochvil.net>
>>>>> "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