From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9306 invoked by alias); 27 Apr 2012 00:37:03 -0000 Received: (qmail 9297 invoked by uid 22791); 27 Apr 2012 00:37:03 -0000 X-SWARE-Spam-Status: No, hits=-5.4 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-vx0-f169.google.com (HELO mail-vx0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Apr 2012 00:36:50 +0000 Received: by vcbfy7 with SMTP id fy7so187128vcb.0 for ; Thu, 26 Apr 2012 17:36:49 -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=trs9gtNIpTUVecYP4v0khM7GWziFTyWX0NZKWFhxtog=; b=VJp28q8bd9eH0VWjXFR8MDGvpHAQx/xweREGLjQM1vpecHtuPdOtGYR91fgVDoRVsw CO6zBY3cB97ObwMBGBcOi6DygNl/pNy99QixhiqW1/vhh+6cPGrxvxmYuDRma65DNAF8 TJfyWd9BR1zn5L6tznwYWWFOwxVocpW+x2pZjsZB+ahuYFUvi9ge4GpbSmr4I2HWihu7 6TPT6MqF53U9UxLWgTz6LR7YkAJkxjh2tLA11+IQhKRBszXXDNN9dXF+WWEatoXwwYxG GgQIKWCLvkTybslnIvpvgktR8MYbJ0477O3yrD5cCPc4Ht8J1jYwp3L9JwbnDbjIWPfy +/jQ== Received: by 10.52.180.106 with SMTP id dn10mr8038673vdc.127.1335487009896; Thu, 26 Apr 2012 17:36:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.180.106 with SMTP id dn10mr8038661vdc.127.1335487009605; Thu, 26 Apr 2012 17:36:49 -0700 (PDT) Received: by 10.52.165.2 with HTTP; Thu, 26 Apr 2012 17:36:49 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 Apr 2012 02:06:00 -0000 Message-ID: Subject: Re: Script to compare pubnames, gdb index as produced by gold and gdb index as produced by gdb From: Doug Evans To: Sterling Augustine 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: ALoCoQl1oo5OvtDBhrb69go+q4+fZC0Epx1dBSYhNWH5RTPZTsOA2FkLFv+l7W7yk902sta2PhuQ6Lr9Do4BZB1rdUlIOgxBEmRqxjK3G/yH+qmcrhvfjf7yr0Cx7wDSzNhwtPaf5dFs17PJctTlZWCLrU39u9ARbw== 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/msg00974.txt.bz2 On Thu, Apr 26, 2012 at 4:40 PM, Sterling Augustine wrote: > Enclosed is patch with a python script which takes a binary and > performs a three-way comparison between the elements in: > > 1. The pubnames and pubtypes sections as generated by gcc > 2. The .gdb_index section as generated by gold > 3. The .gdb_index section as generated by gdb > > I have found it very useful in working on the fission project and I > suspect anyone else who is working on gdb_index would also find it > useful. I'm very open to moving it to a different location--is there > no "contrib" directory?--or not checking it in at all. > > In a perfect world, this script would be included in the testsuite and > run against a wide variety of programs, but the configury associated > with determining whether the right versions of gdb, gold and gcc are > available is beyond my ken. There is/was a src/contrib directory, but setting aside a possibility of separating gdb and binutils trees src/contrib would be shared by a lot of packages. Since we have a few outstanding requests for where to put similar things, I propose creating src/gdb/contrib. > > Thanks, > > Sterling > > > 012-04-26 =A0Sterling Augustine =A0 > > =A0 =A0 =A0 =A0* test_pubnames_and_indexes.py: New file.