RFC: strip --strip-nondebug
Elena Zannoni
ezannoni@redhat.com
Thu Jun 5 19:19:00 GMT 2003
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
More information about the Gdb-patches
mailing list