This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] print function arguments for g95
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at gcc dot gnu dot org
- Date: Mon, 13 Oct 2003 12:06:01 -0400
- Subject: Re: [RFA] print function arguments for g95
- References: <20031013085319.GA865@twiddle.net>
On Mon, Oct 13, 2003 at 01:53:19AM -0700, Richard Henderson wrote:
> G95 properly represents function arguments as references. This
> causes the current fortran support to hork. Fixed thus. Ok?
Sure, thanks.
> * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
> * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
> match c_val_print a bit closer.
>
> Index: f-typeprint.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/f-typeprint.c,v
> retrieving revision 1.11
> diff -u -p -r1.11 f-typeprint.c
> --- f-typeprint.c 14 Sep 2003 16:32:12 -0000 1.11
> +++ f-typeprint.c 13 Oct 2003 08:48:03 -0000
> @@ -329,6 +329,11 @@ f_type_print_base (struct type *type, st
> f_type_print_base (TYPE_TARGET_TYPE (type), stream, 0, level);
> break;
>
> + case TYPE_CODE_REF:
> + fprintf_filtered (stream, "REF TO -> ( ");
> + f_type_print_base (TYPE_TARGET_TYPE (type), stream, 0, level);
> + break;
Does f_type_print_base take care of printing a closing paren or do you
need one here?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer