From: "Bennett F. Dill" <bdill@linux.dillfamily.org>
To: William Trenker <wdtrenker@yahoo.ca>, gdb@sources.redhat.com
Subject: Re: Newbie asks about .so libraries
Date: Wed, 29 Jan 2003 22:03:00 -0000 [thread overview]
Message-ID: <20030129220433.GA18368@linux.dillfamily.org> (raw)
In-Reply-To: <20030129171719.GA1364@nevyn.them.org>
On Wed, Jan 29, 2003 at 12:17:19PM -0500, Daniel Jacobowitz wrote:
> On Wed, Jan 29, 2003 at 08:50:49AM +0000, William Trenker wrote:
> > 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?
>
> It should work fine. There are a couple of quirks, though.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
In my experience, when I attach to a process that includes say
libc.so.1, gdb says no debugging information found. I thought maybe I
had to recompile libc.so.1. Is that not the case? Maybe/probably I'm
doing something wrong.
Ben
next prev parent reply other threads:[~2003-01-29 22:03 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 [this message]
2003-01-29 22:44 ` Jim Blandy
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=20030129220433.GA18368@linux.dillfamily.org \
--to=bdill@linux.dillfamily.org \
--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