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: [commit/Ada] Add handling of "ptype TYPE_NAME.FIELD0.[...].FIELDN" expressions


> > 2008-01-04  Joel Brobecker  <brobecker@adacore.com>
> > 
> >         * ada-exp.y (chop_separator): New function.
> >         (write_selectors): Rewrite to re-use chop_separator.
> >         (ada_nget_field_index, get_symbol_field_type): New functions.
> >         (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
> >         expressions.
> 
> Is this an Ada-only problem?  If not, why are we fixing it only for
> Ada?

I haven't tried with C, so I don't know (I am working with our testsuite
and trying to fix all the failures I get).  The fix is necessarily
Ada-specific because the parser is parsing an Ada expression and needs
to know about the underlying encoding.

-- 
Joel


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