This is the mail archive of the gdb-patches@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: RFC: strip --strip-nondebug


Nick Clifton writes:
 > Hi Elena,
 > 
 > > Nick, cool. Have you tried using gdb with the separate debug info
 > > resulting from your command? It should work transparently, once you
 > > set the debug directory, if needed.
 > >
 > > (gdb) help set debug-file-directory
 > > Set the directory where separate debug symbols are searched for.
 > > Separate debug symbols are first searched for in the same
 > > directory as the binary, then in the `.debug' subdirectory,
 > > and lastly at the path of the directory of the binary with
 > > the global debug-file directory prepended
 > 
 > Apparently not :-(  Is there a good way to watch gdb try to find debug
 > information and find out what is wrong ?
 > 
 > Cheers
 >         Nick
 >         

Hmm, step through symfile.c:find_separate_debug_file, if the problem
seems to be locating the file. If the problem is that the file is
found, but the format is not ok, you should see symbol_file_add
getting called, with that file as one of the arguments. The you can
step through symbol_file_add. Is this Elf/dwarf2 you are testing or
something else? I think the gdb stuff was only tested on such a
combination, even though it should be generic.


elena


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