From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16702 invoked by alias); 8 Feb 2010 05:16:33 -0000 Received: (qmail 16693 invoked by uid 22791); 8 Feb 2010 05:16:32 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f223.google.com (HELO mail-ew0-f223.google.com) (209.85.219.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Feb 2010 05:16:28 +0000 Received: by ewy23 with SMTP id 23so423632ewy.4 for ; Sun, 07 Feb 2010 21:16:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.89.80 with SMTP id b58mr969886wef.73.1265606185675; Sun, 07 Feb 2010 21:16:25 -0800 (PST) In-Reply-To: <20100208041656.GA26375@caradoc.them.org> References: <20100205011447.GA28263@lucon.org> <201002072152.o17LqEm7030005@glazunov.sibelius.xs4all.nl> <6dc9ffc81002071400u5bad1726v93330aeb38246143@mail.gmail.com> <20100207221444.GA5399@caradoc.them.org> <6dc9ffc81002071425y74b5bb8eha47bacc6f1d2a33e@mail.gmail.com> <6dc9ffc81002071503r79077130meb9f66a6cf51ed09@mail.gmail.com> <20100207230748.GA8766@caradoc.them.org> <6dc9ffc81002071816n44363fffpe08a964e513a10c8@mail.gmail.com> <20100208041656.GA26375@caradoc.them.org> Date: Mon, 08 Feb 2010 05:16:00 -0000 Message-ID: <6dc9ffc81002072116sd0797ecnf24550199f1d12a2@mail.gmail.com> Subject: Re: PATCH: PATCH: Add builtin floating point types From: "H.J. Lu" To: "H.J. Lu" , Mark Kettenis , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00199.txt.bz2 On Sun, Feb 7, 2010 at 8:17 PM, Daniel Jacobowitz wr= ote: > On Sun, Feb 07, 2010 at 06:16:55PM -0800, H.J. Lu wrote: >> We have builtin_float and other float types in gdbtypes.c, >> using gdbarch_data. I will add >> >> /* Return the type table for the specified architecture. =A0*/ >> extern const struct arch_floating_type *arch_floating_type (struct >> gdbarch *gdbarch); >> >> with gdbfloattypes.[ch]. > > I can't figure out what you mean by this at all. > I will add a new file, archtypes.c, which provides extern const struct arch_type *arch_type (struct gdbarch *gdbarch); which is similar to extern const struct builtin_type *builtin_type (struct gdbarch *gdbarch); in gdbtypes.c. struct arch_type will have struct type *arch_ieee_single; struct type *arch_ieee_double; struct type *arch_i387_ext; They will be lazy initialized. I thought that was what you suggested. --=20 H.J.