This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: Switch TYPE_CODE_METHOD to store arguments like TYPE_CODE_FUNCTION
- From: Jim Blandy <jimb at redhat dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 13 Jun 2002 18:35:59 -0500
- Subject: Re: RFA: Switch TYPE_CODE_METHOD to store arguments like TYPE_CODE_FUNCTION
- References: <20020604024456.GA8733@branoic.them.org>
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++?