* how to check the symbols inside binaries
@ 2005-04-29 19:01 lin q
0 siblings, 0 replies; 3+ messages in thread
From: lin q @ 2005-04-29 19:01 UTC (permalink / raw)
To: gdb
Sorry send this email again. There are more info about my question.
1) My linux is RedHat Enterprise 3, kernel version is "Linux xaqjibinh40
2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686 i386 GNU/Linux".
2) gdb is 6.3
3) This "gui_main.c not found" error is from DDD, not gdb. But I still need
to know how to find the library that a symbol belonging to.
Thanks.
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.
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to check the symbols inside binaries
2005-04-29 17:57 lin q
@ 2005-04-29 18:03 ` Daniel Jacobowitz
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-04-29 18:03 UTC (permalink / raw)
To: lin q; +Cc: gdb
On Fri, Apr 29, 2005 at 11:33:48AM -0600, lin q wrote:
> 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.
That is the directory which the file was compiled in, by whoever built
it.
> 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?
Presumably it is in a library you link with. Whichever one provides
"main".
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 3+ messages in thread
* how to check the symbols inside binaries
@ 2005-04-29 17:57 lin q
2005-04-29 18:03 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: lin q @ 2005-04-29 17:57 UTC (permalink / raw)
To: gdb
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-29 18:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-29 19:01 how to check the symbols inside binaries lin q
-- strict thread matches above, loose matches on Subject: below --
2005-04-29 17:57 lin q
2005-04-29 18:03 ` Daniel Jacobowitz
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).