From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14172 invoked by alias); 22 Feb 2012 15:41:05 -0000 Received: (qmail 14163 invoked by uid 22791); 22 Feb 2012 15:41:03 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wi0-f169.google.com (HELO mail-wi0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 22 Feb 2012 15:40:30 +0000 Received: by wibhj13 with SMTP id hj13so159343wib.0 for ; Wed, 22 Feb 2012 07:40:29 -0800 (PST) Received-SPF: pass (google.com: domain of zamfir.epfl@gmail.com designates 10.180.90.225 as permitted sender) client-ip=10.180.90.225; Authentication-Results: mr.google.com; spf=pass (google.com: domain of zamfir.epfl@gmail.com designates 10.180.90.225 as permitted sender) smtp.mail=zamfir.epfl@gmail.com Received: from mr.google.com ([10.180.90.225]) by 10.180.90.225 with SMTP id bz1mr37766431wib.5.1329925229491 (num_hops = 1); Wed, 22 Feb 2012 07:40:29 -0800 (PST) Received: by 10.180.90.225 with SMTP id bz1mr31332316wib.5.1329925229407; Wed, 22 Feb 2012 07:40:29 -0800 (PST) Received: from dslabpc24.epfl.ch (dslabpc24.epfl.ch. [128.178.77.224]) by mx.google.com with ESMTPS id gd8sm29937429wib.2.2012.02.22.07.40.27 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Feb 2012 07:40:28 -0800 (PST) Subject: Re: Python API iterate through the arguments of a frame Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Cristian Zamfir In-Reply-To: <87wr7eq54e.fsf@fleche.redhat.com> Date: Wed, 22 Feb 2012 15:41:00 -0000 Cc: Content-Transfer-Encoding: quoted-printable Message-Id: <13F5BBE8-C512-42C0-BA97-0BA1D2318CCC@epfl.ch> References: <3EDCC9ED-AD12-42B4-854E-3404A8EBCF70@epfl.ch> <87obsst5o4.fsf@fleche.redhat.com> <87wr7eq54e.fsf@fleche.redhat.com> To: Tom Tromey X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00062.txt.bz2 On Feb 22, 2012, at 4:06 PM, Tom Tromey wrote: >>>>>> "Cristian" =3D=3D Cristian Zamfir writes: >=20 > Cristian> Thank you, that would be very useful. Is there a quick way to = see the > Cristian> names of all available API functions, just in case there are mo= re > Cristian> undocumented ones, other than looking into the gdb/python/ dire= ctory > Cristian> and infer from the Python bindings (e.g., py-block.c)? >=20 > In addition to the other responses, I'd like to add that we want the > documentation to be complete and clear; so please file bugs for any > holes or problems you notice. Sure, I will. Thanks everyone for the help.=20 >=20 > Cristian> I can however still retrieve the name and the value of the symb= ol when > Cristian> loading a core. Is it possible to also get the type? >=20 > Yes, this information is orthogonal to where the inferior memory comes > from. >=20 > Cristian> warning: core file may not match specified executable file. > Cristian> warning: Can't read pathname for load map: Input/output error. >=20 > These could be a problem, but offhand I can't say what is going on. >=20 > I'm surprised about the AttributeError. I'm not sure how that could > happen. It turned out that when I was loading the core I used an older version of g= db (7.3), in which gdb.Symbol did not have the type attribute. Everything w= orks with the latest version.=20 Thanks,=20 Cristi >=20 > Tom