From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8943 invoked by alias); 3 Feb 2009 17:01:16 -0000 Received: (qmail 8814 invoked by uid 22791); 3 Feb 2009 17:01:15 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Feb 2009 17:01:10 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 220AE2A9683; Tue, 3 Feb 2009 12:01:09 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7glzxomPloSM; Tue, 3 Feb 2009 12:01:09 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id B42C12A9661; Tue, 3 Feb 2009 12:01:08 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 4FE0BE7ACD; Tue, 3 Feb 2009 09:01:06 -0800 (PST) Date: Tue, 03 Feb 2009 17:01:00 -0000 From: Joel Brobecker To: Thiago Jung Bauermann Cc: Daniel Jacobowitz , gdb-patches ml Subject: Re: [RFA] Add la_getstr member to language_defn Message-ID: <20090203170106.GI3964@adacore.com> References: <1227417278.28256.183.camel@localhost.localdomain> <20081123161013.GA15069@caradoc.them.org> <1227490821.8533.25.camel@hotblack.bauerhaus> <20081124022858.GA19331@caradoc.them.org> <1227551659.28256.225.camel@localhost.localdomain> <20081124202146.GA1991@caradoc.them.org> <1227564549.28256.248.camel@localhost.localdomain> <1230949603.8380.143.camel@localhost.localdomain> <20090203002336.GB3964@adacore.com> <1233666130.14735.11.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1233666130.14735.11.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.2i 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: 2009-02/txt/msg00067.txt.bz2 > > I was wondering if it wouldn't be more useful to use the c_get_string > > function as the default rather than the default_get_string stub. > > What do you guys think? > > I don't have an opinion here, since I know little about how other > languages represent strings... I think it's worth a try, but probably Tom and others might want to comment on that. From my end, for Ada, c_get_string is a good intermediate solution until the full solution is implemented. For the "minimal language", I think that this routine would be the best we could do. Not sure about m2 and Fortran, but maybe this can equally help... -- Joel