This is the mail archive of the gdb-patches@sourceware.org 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: [RFC]: Document patch for F90 derived type support


On Thu, Mar 02, 2006 at 06:36:03AM +0200, Eli Zaretskii wrote:
> > Date: Wed, 1 Mar 2006 21:33:35 -0500 (EST)
> > From: Wu Zhou <woodzltc@cn.ibm.com>
> > cc: gdb-patches@sourceware.org
> > 
> > Maybe we can do this:
> > 
> >     case TYPE_CODE_INT:
> >       /* There may be some character types that attempt to come
> >          through as TYPE_CODE_INT since dbxstclass.h is so
> >          C-oriented, we must change these to "character" from "char".  */
> > 
> >       if (strcmp (TYPE_NAME (type), "char") == 0)
> >         fprintfi_filtered (level, stream, "character");
> >       else
> >         fprintfi_filtered (level, stream, "integer (%d)", TYPE_LENGTH (type));
> >       break;
> > 
> > The basic idea is to let the TYPE_CODE (type) and TYPE_LENGTH (type) to 
> > determine what should be displayed.  
> 
> This is okay with me.  Thanks.

Me too, I suppose.  If you're going to go this route, take a look at
the full set of types that gfortran prints out useless names for,
please.  It's in gcc/fortran/trans-type.c.

-- 
Daniel Jacobowitz
CodeSourcery


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