From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7640 invoked by alias); 30 Mar 2009 19:15:54 -0000 Received: (qmail 7626 invoked by uid 22791); 30 Mar 2009 19:15:50 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from e24smtp03.br.ibm.com (HELO e24smtp03.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Mar 2009 19:15:41 +0000 Received: from mailhub3.br.ibm.com (mailhub3.br.ibm.com [9.18.232.110]) by e24smtp03.br.ibm.com (8.13.1/8.13.1) with ESMTP id n2UJBSIl002027 for ; Mon, 30 Mar 2009 16:11:28 -0300 Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n2UJFwxn2031846 for ; Mon, 30 Mar 2009 16:15:58 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n2UJFcUI022740 for ; Mon, 30 Mar 2009 16:15:38 -0300 Received: from [9.8.15.217] ([9.8.15.217]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n2UJFbwF022719; Mon, 30 Mar 2009 16:15:37 -0300 Subject: Re: [rfc] python API exposing inferior's frame stack. From: Thiago Jung Bauermann To: tromey@redhat.com Cc: Eli Zaretskii , gdb-patches@sourceware.org In-Reply-To: References: <1236706351.11106.17.camel@localhost.localdomain> <1237133466.316.16.camel@localhost.localdomain> <1237160806.8098.8.camel@localhost.localdomain> <1237587320.6897.20.camel@localhost.localdomain> <1238385114.7100.32.camel@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Date: Mon, 30 Mar 2009 19:24:00 -0000 Message-Id: <1238440534.11528.2.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 2009-03/txt/msg00688.txt.bz2 El lun, 30-03-2009 a las 13:07 -0600, Tom Tromey escribió: > >>>>> "Thiago" == Thiago Jung Bauermann writes: > Thiago> +static PyObject * > Thiago> +frapy_name (PyObject *self, PyObject *args) > [...] > > Thiago> + if (name) > Thiago> + result = target_string_to_unicode (name, strlen (name)); > > I think symbols are assumed to use the host encoding. Are they? This really surprises me, since symbols are obtained from the executable file. Or the symbol reading mechanism converts them from target to host encoding? -- []'s Thiago Jung Bauermann IBM Linux Technology Center