how to check the symbols inside binaries

lin q linq936@hotmail.com
Fri Apr 29 17:57:00 GMT 2005


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/



More information about the Gdb mailing list