From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31850 invoked by alias); 29 Apr 2005 17:33:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31783 invoked from network); 29 Apr 2005 17:33:49 -0000 Received: from unknown (HELO hotmail.com) (64.4.37.30) by sourceware.org with SMTP; 29 Apr 2005 17:33:49 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 29 Apr 2005 10:33:48 -0700 Message-ID: Received: from 149.199.62.254 by by10fd.bay10.hotmail.msn.com with HTTP; Fri, 29 Apr 2005 17:33:48 GMT X-Originating-Email: [linq936@hotmail.com] X-Sender: linq936@hotmail.com From: "lin q" To: gdb@sources.redhat.com Bcc: Subject: how to check the symbols inside binaries Date: Fri, 29 Apr 2005 17:57:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 29 Apr 2005 17:33:48.0803 (UTC) FILETIME=[9A2EAD30:01C54CE1] X-SW-Source: 2005-04/txt/msg00236.txt.bz2 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 "/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/