From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12107 invoked by alias); 11 Apr 2012 04:55:56 -0000 Received: (qmail 12099 invoked by uid 22791); 11 Apr 2012 04:55:55 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-qc0-f169.google.com (HELO mail-qc0-f169.google.com) (209.85.216.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 11 Apr 2012 04:55:40 +0000 Received: by qcsd16 with SMTP id d16so371932qcs.0 for ; Tue, 10 Apr 2012 21:55:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-system-of-record :x-gm-message-state; bh=g/qBQ/Rvr6ZpVA9VwPUe2on5wVlAEY71WQ1WxzguBIk=; b=QMscoZ0jRtLCLD6VeaxeAmNdWlofz+fDQ6Z64vNGzSi9QFeT6TAL0DaAA+sk+DmxGa 5aWtCTtejeLAMhfbB/D2gSUNEm0tOCSUvRM48u5n8HDt4Ygm7JzoXe0ZDdBAkrqTlF6V V822IoZdVzkirGCmbDDRxRs6KDObfqpEJ3iOOAuHW/xL4FIrY77oOJJOp1+EVbur/JlO a7TQQLtcNB66Zog9KFjnLSpNxlKA6OLxscfLQU7Fsrj3dUdxj7nv05Y9JrRPcUcH+H6y n9+0HW1X5BEfs5U3MovECgkK7VlFEqvVXcv6QiYJuE3mK2dNurk+wGUUJdAK/vl16EOe J0AQ== Received: by 10.229.136.148 with SMTP id r20mr2890764qct.66.1334120139933; Tue, 10 Apr 2012 21:55:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.136.148 with SMTP id r20mr2890760qct.66.1334120139820; Tue, 10 Apr 2012 21:55:39 -0700 (PDT) Received: by 10.224.67.74 with HTTP; Tue, 10 Apr 2012 21:55:39 -0700 (PDT) In-Reply-To: <87398b4582.fsf@fleche.redhat.com> References: <87mx6k4b9t.fsf@fleche.redhat.com> <87398b4582.fsf@fleche.redhat.com> Date: Wed, 11 Apr 2012 04:59:00 -0000 Message-ID: Subject: Re: [RFC - Python Scripting] New method gdb.Symtab.blocks_iterator - docs included From: Siva Chandra To: Tom Tromey Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-Gm-Message-State: ALoCoQnwJ8SN1DKGv62cAQKElVM8oxX0usufjAW7H2W0IIa+8wyD+fY5NeagvBbxd3OOARM4FYe1uX4deCT8MjUowxI/Xv9h88QCOAIpIZWHUS7BkH+xt9yHTcOV1q5wZAyFvmjD4OfDKPOcGJfz6Ws3pgC9WaW3Dg== 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: 2012-04/txt/msg00226.txt.bz2 Tom> I think it would be a bit more future-proof to just let the user access Tom> the symtab's global and static blocks, then rely on iteration over Tom> symbols within a block. =A0This would mean also adding a way to fetch a Tom> block's subblocks. To begin with then, can I remove the idea of this iterator (and the blocks method) and add two methods global_block and static_block? Thanks, Siva Chandra