From: Jaimon Jose <jjaimon@yahoo.com>
To: gdb@sourceware.org
Subject: Setting breakpoints where duplicate symbols are present
Date: Sat, 05 May 2007 02:57:00 -0000 [thread overview]
Message-ID: <463BF26F.5000305@yahoo.com> (raw)
This may be a trivial question. I'm kind of stuck on this and didn't
find a way to work around.
I have a process where multiple libraries are loaded. Some of them
have duplicate symbols ( private copies of the same symbol and the
libraries are linked with -Bsymbolic for a reason ). I can't see the
symbol from the library in context ( in dbx I could do this by
qualifying the symbol by the library name. For eg. `libfoo.so.1`foo_bar
) when I try to set a breakpoint or inspect the symbol. It will always
go to a symbol from a library which is already resolved where as the one
that's getting executed is from the local library. Because of this, the
breakpoints are never hit.
My questions are:
1. How do I inspect all the symbols of the same name in the process
space? ( I tried loading the symbol from each library
load-symbol-file. It didn't help either. In case of ambiguity, dbx used
to show all symbols qualified with the library name and let us choose
the right one)
2. How do I qualify a symbol with the library name where it belongs to?
( for eg. `libfoo.so`foo_bar )
Appreciate your help
--jaimon
next reply other threads:[~2007-05-05 2:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-05 2:57 Jaimon Jose [this message]
2007-05-05 4:44 ` Daniel Jacobowitz
2007-05-05 13:37 ` Ulrich Weigand
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=463BF26F.5000305@yahoo.com \
--to=jjaimon@yahoo.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