[RFA] PR 11530: Fix and test case

Tom Tromey tromey@redhat.com
Fri May 7 17:45:00 GMT 2010


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



More information about the Gdb-patches mailing list