From: Daniel Jacobowitz <drow@false.org>
To: Anitha Boyapati <anithab@sankhya.com>
Cc: gdb@sourceware.org
Subject: Re: break points for shared libs
Date: Sat, 09 Dec 2006 15:14:00 -0000 [thread overview]
Message-ID: <20061209151416.GA22239@nevyn.them.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0612091112040.23916-100000@linux42.sankhya.com>
On Sat, Dec 09, 2006 at 11:26:11AM +0530, Anitha Boyapati wrote:
> Actually my requirement is to make breakpoints work in a shared library
> while debugging another application which uses the above shared library.
>
> The child.cc is the source file for libmem.so
> (g++ -g -shared -o libmem.so child.cc)
>
> Please let me know how can i do this.
You should not have to do anything. Don't mention the shared library
explicitly to GDB - it doesn't need that. Just load the real
application that you want to debug and run it. You should be able to
set a breakpoint in the shared library.
If you are using an old version of GDB, upgrade to the latest release.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2006-12-09 15:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 12:40 Anitha Boyapati
2006-12-07 14:36 ` Daniel Jacobowitz
2006-12-07 14:47 ` Anitha Boyapati
2006-12-07 15:03 ` Daniel Jacobowitz
2006-12-09 6:34 ` Anitha Boyapati
2006-12-09 15:14 ` Daniel Jacobowitz [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=20061209151416.GA22239@nevyn.them.org \
--to=drow@false.org \
--cc=anithab@sankhya.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