This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB 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: Final separate debug info patch


Is there any particular reason that the elfutils `strip -f' throws
away all but the last component of the filenames given to it?

$ /home/jimb/elfutils/bin/strip -f `pwd`/foon call-rt-st
$ objdump -s -j .gnu_debuglink call-rt-st

call-rt-st:     file format elf32-i386

Contents of section .gnu_debuglink:
 0000 666f6f6e 00000000 f74a8703           foon.....J..    
$ 

It seems to me that strip should preserve the filename given in its -f
argument.  Let consumers of the .gnu_debuglink section decide for
themselves what to do with it.

Then, I think if the filename in the .gnu_debuglink section is
absolute, GDB should try that path instead of searching in the
directory containing the stripped file.  Or it should at least try it
at some point.

We have a test in the GDB test suite that copies its executable to
/tmp.  It would be nice if we didn't have to add special support to
that test case to copy over the debug info, too.  If the filename in
.gnu_debuglink were absolute, and if GDB were to respect that, this
would work transparently.


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