This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit/Ada] Add handling of "ptype TYPE_NAME.FIELD0.[...].FIELDN" expressions
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 5 Jan 2008 06:58:40 -0800
- Subject: Re: [commit/Ada] Add handling of "ptype TYPE_NAME.FIELD0.[...].FIELDN" expressions
- References: <20080104151340.GC3758@adacore.com> <ulk74v0gp.fsf@gnu.org>
> > 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