Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "luca regini" <luca.regini@gmail.com>
To: "luca regini" <luca.regini@gmail.com>, gdb@sourceware.org
Subject: Re: Beginner question regarding gdb symbol files
Date: Thu, 28 Feb 2008 16:13:00 -0000	[thread overview]
Message-ID: <64077c280802280757n76d94f5ckd839cca266437296@mail.gmail.com> (raw)
In-Reply-To: <20080221134725.GA6642@caradoc.them.org>

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.
Luca



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 <drow@false.org> 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
>


  reply	other threads:[~2008-02-28 15:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-21 13:47 luca regini
2008-02-21 16:53 ` Daniel Jacobowitz
2008-02-28 16:13   ` luca regini [this message]
2008-02-28 16:53     ` Daniel Jacobowitz
2008-02-28 17:00       ` luca regini
2008-02-28 17:13         ` Daniel Jacobowitz
2008-02-29  1:10           ` Michael Snyder
2008-02-29 13:40             ` luca regini
2008-02-29 18:19               ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64077c280802280757n76d94f5ckd839cca266437296@mail.gmail.com \
    --to=luca.regini@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox