From: "lin q" <linq936@hotmail.com>
To: gdb@sources.redhat.com
Subject: how to check the symbols inside binaries
Date: Fri, 29 Apr 2005 17:57:00 -0000 [thread overview]
Message-ID: <BAY10-F306E508DAFC4CF065F61DBE9240@phx.gbl> (raw)
Hi,
I am debugging a program, the source files scatter around many different
places. When I start gdb and load the executable, I am prompted
"<path1>/gui_main.c:there is no such file or directory". The "path1" is not
right, there is no such directory at all.
My question is how come gdb tries to load gui_main.c from path1? What is
the logic under the hood?
The problem is even worse, gui_main.c is not my file, it must be from one
of libraries I link with. But I have no idea where it is.
I run ldd against the program and I see a lot of shared libraries, so my
question is how I can know which library is this "gui_main" from? Or maybe
it is in the executable itself? How can I know that?
Thanks.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
next reply other threads:[~2005-04-29 17:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-29 17:57 lin q [this message]
2005-04-29 18:03 ` Daniel Jacobowitz
2005-04-29 19:01 lin q
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=BAY10-F306E508DAFC4CF065F61DBE9240@phx.gbl \
--to=linq936@hotmail.com \
--cc=gdb@sources.redhat.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).