This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Script to compare pubnames, gdb index as produced by gold and gdb index as produced by gdb
- From: Doug Evans <dje at google dot com>
- To: Sterling Augustine <saugustine at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 26 Apr 2012 17:36:49 -0700
- Subject: Re: Script to compare pubnames, gdb index as produced by gold and gdb index as produced by gdb
- References: <CAEG7qUysAyUao1-Y_hBYA_tpiQ4cuFhVEDuO4jE1bb3nvpJYFQ@mail.gmail.com>
On Thu, Apr 26, 2012 at 4:40 PM, Sterling Augustine
<saugustine@google.com> 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 ?Sterling Augustine ?<saugustine@google.com>
>
> ? ? ? ?* test_pubnames_and_indexes.py: New file.