From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4816 invoked by alias); 1 Feb 2012 16:08:50 -0000 Received: (qmail 4805 invoked by uid 22791); 1 Feb 2012 16:08:49 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Feb 2012 16:08:37 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q11G8Z25009855 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 1 Feb 2012 11:08:35 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q11G8Y8t022540; Wed, 1 Feb 2012 11:08:35 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id q11G8WWd027338; Wed, 1 Feb 2012 11:08:33 -0500 From: Tom Tromey To: Kevin Pouget Cc: Doug Evans , gdb-patches@sourceware.org Subject: Re: RFA: fix PR python/13599 References: Date: Wed, 01 Feb 2012 16:08:00 -0000 In-Reply-To: (Kevin Pouget's message of "Wed, 1 Feb 2012 09:31:40 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-02/txt/msg00016.txt.bz2 >>>>> "Kevin" == Kevin Pouget writes: Kevin> I was curious about the difference between your new method and this one: >> def whereis(arg): >> symbols = gdb.decode_line(arg) decode_line won't return, e.g., a local variable. It is also much less efficient than just fetching the field from the symbol. Kevin> Actually, the difference between Symbol, Symtab and Symtab_and_line is Kevin> still a bit obscure to me, I'm not sure that the documentation really Kevin> explains the meaning of these classes, but just what they do (or maybe Kevin> I missed something): File bugs against the python component for any documentation oddities you find, and we will fix them. Phil has a long-term goal of getting more examples into the manual, that would help too :) Tom