From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 66392 invoked by alias); 26 Jul 2019 06:19:22 -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 66379 invoked by uid 89); 26 Jul 2019 06:19:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=H*r:142, H*r:sk:fencepo, H*r:4.82, H*r:470 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 26 Jul 2019 06:19:21 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hqtZW-0001aS-76; Fri, 26 Jul 2019 02:19:18 -0400 Received: from [176.228.60.248] (port=4727 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hqtZV-0007xS-AU; Fri, 26 Jul 2019 02:19:17 -0400 Date: Fri, 26 Jul 2019 06:19:00 -0000 Message-Id: <83y30lmi73.fsf@gnu.org> From: Eli Zaretskii To: Christian Biesinger CC: gdb-patches@sourceware.org In-reply-to: <20190726013824.230132-1-cbiesinger@google.com> (gdb-patches@sourceware.org) Subject: Re: [PATCH v2] Add an Objfile.lookup_global_symbol function References: <20190726013824.230132-1-cbiesinger@google.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00569.txt.bz2 > Date: Thu, 25 Jul 2019 20:38:24 -0500 > From: "Christian Biesinger via gdb-patches" > Cc: Christian Biesinger > > Per the discussion in the thread about my gdb.lookup_global_symbol > patch, I've changed this patch to only look in GLOBAL_SCOPE. > > This is essentially the inverse of Symbol.objfile. This allows > handling different symbols with the same name (but from different > objfiles) and can also be faster if the objfile is known. > > gdb/ChangeLog: > > 2019-07-25 Christian Biesinger > > * NEWS: Mention new function Objfile.lookup_global_symbol. > * python/py-objfile.c (objfpy_lookup_global_symbol): New function > Objfile.lookup_global_symbol. > > gdb/doc/ChangeLog: > > 2019-07-25 Christian Biesinger > > * python.texi (Objfiles In Python): Document new function > Objfile.lookup_global_symbol. > > gdb/testsuite/ChangeLog: > > 2019-07-25 Christian Biesinger > > * gdb.python/py-objfile.c: Add global and static vars. > * gdb.python/py-objfile.exp: Test new function Objfile. > lookup_global_symbol. Thanks, the documentation parts are OK.