From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6477 invoked by alias); 2 Mar 2006 04:40:23 -0000 Received: (qmail 6469 invoked by uid 22791); 2 Mar 2006 04:40:22 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 02 Mar 2006 04:40:21 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FEfbu-0006sT-HA; Wed, 01 Mar 2006 23:40:18 -0500 Date: Thu, 02 Mar 2006 04:40:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Wu Zhou , gdb-patches@sourceware.org Subject: Re: [RFC]: Document patch for F90 derived type support Message-ID: <20060302044018.GA26360@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Wu Zhou , gdb-patches@sourceware.org References: <20060228135310.GA25487@nevyn.them.org> <20060301043203.GA17621@nevyn.them.org> <20060301050501.GA18703@nevyn.them.org> <20060301193829.GD6465@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00044.txt.bz2 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 > > 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