This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: find-debuginfo.sh change for gdb index
- From: Tom Tromey <tromey at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: Project Archer <archer at sourceware dot org>, pmatilai at redhat dot com
- Date: Wed, 30 Jun 2010 10:28:55 -0600
- Subject: Re: find-debuginfo.sh change for gdb index
- References: <m3vd91tqpl.fsf@fleche.redhat.com><20100629232147.C019548255@magilla.sf.frob.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Roland" == Roland McGrath <roland@redhat.com> writes:
Roland> I don't quite understand what file this writes to.
Roland> Is it implicitly "<symfile name>.index" in the argument directory?
Yes.
Roland> IMHO, the file name should have "gdb" in the name.
Roland> This is really not any very generic sort of index for the information.
Ok. What do you think of just ".gdb as the suffix?
>> + if [ -f "${debugfn}.index" ]; then
>> + make_id_link "$id" "/usr/lib/debug$dn/$bn" .debug
>> + fi
Roland> What's this for? It just repeats the work of making and recording the
Roland> build-id symlink to the .debug file. Unless you're being quite subtle
Roland> somehow I've missed, this doesn't do anything with the index file.
Roland> Do you mean something like:
Roland> make_id_link "$id" "/usr/lib/debug$dn/$bn" .index
Roland> ? That gets you a /usr/lib/debug/.build-id/xx/yyy.index symlink
Roland> to ../../usr/bin/foobar.index for example.
Yeah, oops. I will fix this.
Tom