Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pierre Muller <muller@cerbere.u-strasbg.fr>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATH] Change is_pascal_string_type args
Date: Fri, 03 May 2002 00:49:00 -0000	[thread overview]
Message-ID: <4.2.0.58.20020503093631.02888ec8@ics.u-strasbg.fr> (raw)
In-Reply-To: <3CD17E47.D7FC8B13@redhat.com>

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


      reply	other threads:[~2002-05-03  7:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02  4:18 Pierre Muller
2002-05-02 11:11 ` Michael Snyder
2002-05-03  0:49   ` Pierre Muller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.2.0.58.20020503093631.02888ec8@ics.u-strasbg.fr \
    --to=muller@cerbere.u-strasbg.fr \
    --cc=gdb-patches@sources.redhat.com \
    --cc=msnyder@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox