This is the mail archive of the gdb-patches@sources.redhat.com 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: [PATH] Change is_pascal_string_type args


At 19:58 02/05/2002 , Michael Snyder a écrit:
>Pierre Muller wrote:
> > 
> > The following patch is only to prepare for the
> > next patch for p-exp.y that will enhance the field
> > search for pascal expressions.
> > 
> > It adds a new argument that can contain
> > a pointer to the name of the field containing the
> > chars of the string.
> > If the type is a pascal string the retruned value is now
> > the char array field index plus one.
> > (to avoid a zero if some new pascal compiler
> > use the first field to contain the char array one day...)
>
>Pierre, aren't you the Pascal maintainer for gdb?
>Seems like you could be approving some of these changes
>yourself, since they affect only Pascal.

Of course, this are committed patches
I made a mistake on the title of that mail,
it should be [PATCH] of course.

The only thing that I did not commit yet is the 
big p-exp.y patch which I sent as a RFC.
This is mainly because I wanted to know the
comments of the other developppers, 
as the method that I used in p-exp.y to be
able to follow the current type of an expression
should be usable by other expression parser.

If we implement it for all languages,
then we should be able to get a completer that works correctly 
for all structure fields.

After applying this patch, my goal is to submit
a patch to completer.c and symtab.c
that will allow to complete
if 
X is a record variable of type
  TRECT = record
    real,imaginary : longint;
end;
in C 
     struct {
         int real, imaginary;
     } TRECT;
then

print X.R'Tab'
would expand to 
print X.REAL
(or more precisely to
X.Real for GPC compiled code and X.REAL for Freee Pascal related code).



Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99


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