This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] PR 11530: Fix and test case
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'Jan Kratochvil'" <jan dot kratochvil at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Fri, 07 May 2010 11:45:02 -0600
- Subject: Re: [RFA] PR 11530: Fix and test case
- References: <001b01cae7e5$f46d47d0$dd47d770$@muller@ics-cnrs.unistra.fr> <20100430081959.GB12043@host0.dyn.jankratochvil.net> <15700.946111656$1272633144@news.gmane.org> <m3iq78zw5d.fsf@fleche.redhat.com> <28104.8831450336$1273095904@news.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
%om> That is interesting. Why does it work in one case but not the other?
Pierre> for the first test 'p a.i'
Pierre> gdb calls search_struct_field,
Pierre> which has already some code (around line 1842)
Pierre> to cope for unnamed fields.
Pierre> There was no equivalent in the lookup_struct_elt_type
Pierre> function.
Thanks.
Pierre> By the way, the search_struct_field function
Pierre> also allows a union called "else" to be searched.
Pierre> Should this also be inserted into lookup_struct_elt_type
Pierre> or is this only a left over from Chill language?
I was not even aware of this case. I have no idea what it is for.
I suppose that's the danger of putting language-specific code into a
generic function...
Tom