Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: William Trenker <wdtrenker@yahoo.ca>
Cc: gdb@sources.redhat.com
Subject: Re: Newbie asks about .so libraries
Date: Wed, 29 Jan 2003 22:44:00 -0000	[thread overview]
Message-ID: <vt265s7mvin.fsf@zenia.red-bean.com> (raw)
In-Reply-To: <20030129085049.25d160b2.wdtrenker@yahoo.ca>

renee517@yahoo.com writes:

> Here's a basic question.  Can gdb/insight debug code from .so files?
> 
> I have a library, compiled with debug information, and a main program, also with debug info.  If I start gdb with the main program, does gdb automatically dig up the debug info from any .so libraries used by the main program?  Can I set breakpoints on the source code in the .so file?
> 
> Or do I have to link statically for debugging purposes?

No, GDB doesn't know anything about the shared libraries until they're
loaded.  If you set a breakpoint on 'main', and run the program to it,
then GDB will know about the shared libraries, and you'll be able to
set breakpoints on them.


      parent reply	other threads:[~2003-01-29 22:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-29 16:53 William Trenker
2003-01-29 17:16 ` Daniel Jacobowitz
2003-01-29 22:03   ` Bennett F. Dill
2003-01-29 22:44 ` Jim Blandy [this message]

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=vt265s7mvin.fsf@zenia.red-bean.com \
    --to=jimb@redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=wdtrenker@yahoo.ca \
    /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