This is the mail archive of the gdb@sourceware.org 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: Beginner question regarding gdb symbol files


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


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