From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99504 invoked by alias); 11 Nov 2019 16:31:26 -0000 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 Received: (qmail 99431 invoked by uid 89); 11 Nov 2019 16:31:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.5 required=5.0 tests=AWL,BAYES_00,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham version=3.3.1 spammy=HX-Received:6830, H*r:209.85.210, H*r:sk:mail-ot, H*RU:sk:mail-ot X-HELO: mail-ot1-f66.google.com Received: from mail-ot1-f66.google.com (HELO mail-ot1-f66.google.com) (209.85.210.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Nov 2019 16:31:21 +0000 Received: by mail-ot1-f66.google.com with SMTP id n23so11713132otr.13 for ; Mon, 11 Nov 2019 08:31:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B5QtOLWV/F8BW6r6l5LOW9ok4t7I5K0okyytcl+xmck=; b=Qs1jVxDwoTu2MFy3JlvSKZMhryl95o2AafkGZ6Jq/vE8AkWwiED1tkAuDNy7Z2dit1 0y8tZESslHB8Vkyubz85MEkNRZWw/VgSYuk4lHm79GCSVEiumR8LZ/HTkCqiPb30USHm VDWHsC5upY2WMJvpRt3dXxCkRmaOLKmU+Br5RyN3c5uLuR4stHoNr9Bx90szhHxEb/a+ tPQFP1/PBaaI8X66AFhNyFXdElp0x6je7b69uP2/AggzcDHyOKHUIL4CzU13nwABGajf f4zzRKNQsnIzzJzYFoJozuN616bYOdUeb6zdxIJY61/Wwn0Zd6EMpYB+R40/tjCYFCw4 /9/g== MIME-Version: 1.0 References: <20191023191354.GH4962@embecosm.com> <20191101115304.GR4962@embecosm.com> <20191104171204.GB11037@embecosm.com> <20093265-f125-8668-d7ba-0c36b07a53ec@simark.ca> <20191110222731.GH11037@embecosm.com> <20191111162730.GJ11037@embecosm.com> In-Reply-To: <20191111162730.GJ11037@embecosm.com> From: "Christian Biesinger via gdb-patches" Reply-To: Christian Biesinger Date: Mon, 11 Nov 2019 16:31:00 -0000 Message-ID: Subject: Re: [PATCH] gdb/python: Introduce gdb.lookup_all_static_symbols To: Andrew Burgess Cc: Simon Marchi , gdb-patches Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-11/txt/msg00289.txt.bz2 On Mon, Nov 11, 2019 at 8:27 AM Andrew Burgess wrote: > > Thanks! By the way, should Objfile also get a lookup_static_symbols > > method now, similar to Objfile.lookup_static_symbol? > > > > (I don't personally have a use-case for this, but figured I should > > ask) > > I don't think that's a crazy idea, but I don't plan to write one right > now. > > My interest in this area started when I was auditing how the GDB > function lookup_static_function (the one in symtab.c) was used, and I > felt that the way it was used in the python code wasn't quite right. > I don't have any specific use cases to address. > > We can always add extra API methods later if/when there's a need for > them without breaking backward compatibility, so I'm happy to leave > this for now. OK, sounds good. Christian