Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Jim Blandy <jimb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: Switch TYPE_CODE_METHOD to store arguments like TYPE_CODE_FUNCTION
Date: Thu, 13 Jun 2002 17:36:00 -0000	[thread overview]
Message-ID: <20020614003650.GA21505@nevyn.them.org> (raw)
In-Reply-To: <npptyu92g0.fsf@zwingli.cygnus.com>

On Thu, Jun 13, 2002 at 06:35:59PM -0500, Jim Blandy wrote:
> 
> Minor observation:
> 
> In gdbtypes.h, your patch makes the following change to `struct field':
> 
>      /* Name of field, value or argument.
> -       NULL for range bounds and array domains.  */
> +       NULL for range bounds, array domains, and member function
> +       arguments.  */
>  
>      char *name;
> 
> Is there any reason this *must* be null?  Aren't there times where we
> do know a method's arguments' names, and where we could fill this in?
> 
> I guess I'm thinking about the way prototyped function types in C may
> or may not include the names:
> 
>         typedef int (*foo_t) (int x, int y);
>         typedef int (*bar_t) (int, int);
>         typedef int (*baz_t) (int x, int);
> 
> Is there any analog to this in C++?

Right now, we have two entries for a method.  One of them is at
declaration time and comes from the class; the other is at definition
time and comes from the function itself.  One is TYPE_CODE_METHOD and
names are not present in the debug info for either stabs or dwarf; the
other is TYPE_CODE_FUNCTION.  Until we unify those (some day...) we
won't have the names.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-06-14  0:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-03 19:45 Daniel Jacobowitz
2002-06-13 16:36 ` Jim Blandy
2002-06-13 17:36   ` Daniel Jacobowitz [this message]
2002-06-13 18:10 ` Jim Blandy

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=20020614003650.GA21505@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@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