This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] libdw: Try .gnu_debugaltlink paths relative to the debug file


On 12/16/2013 03:29 PM, Roland McGrath wrote:
>> In Fedora, these paths are relative to the debug file itself, so that's
>> a better thing to try first.  We don't actually have the debug path in
>> libdw, but we can usually find it from elf->fildes and /proc/self/fd/.
> 
> That's even more barfalicious (extreme Linuxism kludgery to paper over
> lousy component layering) than the whole abomination of the libdw layer
> opening files in the first place.

It's a bit of a kludge, sure, but not so extreme IMO.  Even though it is
Linux-specific, it will fail harmlessly on other systems and carry on as
before.

But I understand you're not thrilled with the status quo either.  Mark
mentioned that maybe we should revisit this, and push the alt file
perparation out to libdwfl.  He just didn't trick me into doing it yet. :)

Josh

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]