Beginner question regarding gdb symbol files

Daniel Jacobowitz drow@false.org
Thu Feb 21 16:53:00 GMT 2008


On Thu, Feb 21, 2008 at 02:43:58PM +0100, luca regini wrote:
> I have a project that is organized like the Makefile that follows. I
> have an executable that links two shared objects. I separate debug
> symbols from shared libraries and executable files. I would like to
> debug the stripped executable using the stripped symbols. Sadly i am
> not able to view any debug information. I tryed to use both the
> symbol-file and add-symbol-file to read the stripped symbols.
> Any help is very appreciated.

If you use --only-keep-debug, also use objcopy --add-gnu-debuglink to
create the final executable.  GDB needs that pointer from your program
to the debug file.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list