On Tue, 2015-09-08 at 14:53 -0700, Roland McGrath wrote:
I think there might be circumstances when you can't open
/proc/PID/exe.
I'm not sure you want failure to open it or it failing to be a readable
ELF file to be hard failures.
I think you are right. Probably not much will actually work
if /proc/PID/exe cannot be read. But the user might find and report a
Dwfl_Module that does work for what they need. So I now just silently
ignore when /proc/PID/exe cannot be read and we fall back to the
existing mechanism of using one of the existing Dwfl_Modules (we might
then still fail of course because there is no Dwfl_Module available).
Thanks,
Mark