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: [RFA] PR 11530: Fix and test case


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


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