From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by sourceware.org (Postfix) with ESMTPS id B960E394CC08 for ; Wed, 17 Jun 2020 18:41:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B960E394CC08 Received: by mail-qt1-x82f.google.com with SMTP id y1so2349030qtv.12 for ; Wed, 17 Jun 2020 11:41:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sn6B5qnUNYCsVsF8f/HVlibVt5AbJ6g6hBQqD0y0rKY=; b=nG67vj8t6Q/HjR+1OML5jlP1P16acuDBmlBgb2XEkmWf2OJvJb6Loal4ftncs6ogHq RumKe7yTVpyLsmgsLXUoq/y30iCYRa0oUU2DUpo741RjZ1z5I1YUbmmsWWCyliAF0WLb 1d7S1bNjuE6NReyozPYf3M9rU1xCH/YPuYD9N9fyq1R1Xx4u9tMBaYP8ic9c9RZImIpJ LJGwXAT+0orvccUQTqIAHDinUSVv23TsNekEgZYPZUfc68GYP6Y/ZnejE91spwnnOTEO wVXT7yWmpVkm/a1CXh3AYe1XsXepI2KmGSENPPsc8SN4AEcYQCV8Ik/scFzh/RdqQ4uH KALQ== X-Gm-Message-State: AOAM530y3fxrMHDZGGEHS1ugFvHNZ2FNCq0p/wWjQpmLd5lpUEHxjfeE QzZ8AWNxptKvIWnAgey5sxzWJ8Mdcyn7g9WM8iiwglDG X-Google-Smtp-Source: ABdhPJw9s4q0VfXBkWfEFF5O1/nx94CBRbjqgOPVvcaA23palg1Tk8hV+bnlYCNmPf3U3DOvrAxM1wP9OMmg1dvzIlQ= X-Received: by 2002:aed:35af:: with SMTP id c44mr448724qte.349.1592419283973; Wed, 17 Jun 2020 11:41:23 -0700 (PDT) MIME-Version: 1.0 References: <360af15dc7ea2e2e20f2b9ff6529467b7e0a0614.1592415322.git.andrew.burgess@embecosm.com> In-Reply-To: <360af15dc7ea2e2e20f2b9ff6529467b7e0a0614.1592415322.git.andrew.burgess@embecosm.com> From: Christian Biesinger Date: Wed, 17 Jun 2020 13:40:47 -0500 Message-ID: Subject: Re: [PATCH 4/5] gdb/python: New method to access list of register groups To: Andrew Burgess Cc: gdb-patches Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2020 18:41:25 -0000 On Wed, Jun 17, 2020 at 12:38 PM Andrew Burgess wrote: > > Add a new method gdb.Architecture.register_groups which returns a new > object of type gdb.RegisterGroupsIterator. This new iterator then > returns objects of type gdb.RegisterGroup. > > Each gdb.RegisterGroup object just wraps a single reggroup pointer, > and (currently) has just one read-only property 'name' that is a > string, the name of the register group. > > As with the previous commit (adding gdb.RegisterDescriptor) I made > gdb.RegisterGroup an object rather than just a string in case we want > to add additional properties in the future. So this adds just the ability to get the names of the groups, without a way to associate specific registers with the group? Out of curiosity, what's the use case for that? Christian