From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20237 invoked by alias); 5 Feb 2009 16:07:40 -0000 Received: (qmail 20226 invoked by uid 22791); 5 Feb 2009 16:07:37 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 05 Feb 2009 16:07:33 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id n15G6dgN006384 ; Thu, 5 Feb 2009 17:06:39 +0100 (CET) Received: from mailserver.u-strasbg.fr (ms3.u-strasbg.fr [IPv6:2001:660:2402:d::12]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id n15G6dsw095528 ; Thu, 5 Feb 2009 17:06:39 +0100 (CET) (envelope-from muller@ics.u-strasbg.fr) Received: from d620muller (www-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id n15G6cOX027432 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Thu, 5 Feb 2009 17:06:39 +0100 (CET) (envelope-from muller@ics.u-strasbg.fr) From: "Pierre Muller" To: "'Tom Tromey'" , "'Thiago Jung Bauermann'" Cc: "'Daniel Jacobowitz'" , "'gdb-patches ml'" 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> <1233665501.14735.7.camel@localhost.localdomain> <1233751023.14735.40.camel@localhost.localdomain> <1233785351.14735.56.camel@localhost.localdomain> In-Reply-To: Subject: RE: [RFA] Add la_getstr member to language_defn Date: Thu, 05 Feb 2009 16:07:00 -0000 Message-ID: <000401c987ab$bc52a520$34f7ef60$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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/msg00125.txt.bz2 > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Tom Tromey > Envoy=E9=A0: Thursday, February 05, 2009 4:55 PM > =C0=A0: Thiago Jung Bauermann > Cc=A0: Daniel Jacobowitz; gdb-patches ml > Objet=A0: Re: [RFA] Add la_getstr member to language_defn >=20 > >>>>> "Thiago" =3D=3D Thiago Jung Bauermann writes: >=20 > Thiago> Right. Here's the new version. It also uses c_get_string for > Ada and > Thiago> minimal... >=20 > Last night I thought of something else... >=20 > Thiago> + Assumes strings are terminated by a null character. > [...] > Thiago> +void > Thiago> +c_get_string (struct value *value, gdb_byte **buffer, int > *length, > Thiago> + const char **charset) >=20 > My understanding is that the contract for la_getstr says that the > resulting string will be zero-terminated. But if that is the case... But this would also mean that the string could not contain zero in the middle, which sometimes happens for pascal strings... Isn't the length argument there for this? Pierre Muller Pascal language support maintainer for GDB