This is the mail archive of the 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

I have another question regarding gdb and debugging.
I would like to debug a plug-in written for a server application. This
plugin is compiled as a shared library that includes symbols.
The server application doesn't come with symbols neither source code.
I have problems debugging my plugin code in these conditions.
I tried to use the --add-gnu-debuglink option to link in the server's
symbols but i am still unable to debug my module. Do i need both the
server symbols and source files? Is it possibile to debug the pluging
using only it's symbols and sources?
Thanks in advance.

How does gdb behaves when it doesn't see all the source files of a
process? I have this situation

On Thu, Feb 21, 2008 at 2:47 PM, Daniel Jacobowitz <> wrote:
> 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]