From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25621 invoked by alias); 17 May 2004 18:35:52 -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 25614 invoked from network); 17 May 2004 18:35:51 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 17 May 2004 18:35:51 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i4HIZpRo021215 for ; Mon, 17 May 2004 14:35:51 -0400 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i4HIZg031080; Mon, 17 May 2004 14:35:49 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id C7AA72B9D; Mon, 17 May 2004 14:35:35 -0400 (EDT) Message-ID: <40A905F7.5000502@gnu.org> Date: Mon, 17 May 2004 18:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Manoj Iyer Cc: Monika Chaddha , gdb@sources.redhat.com Subject: Re: List command question References: <004801c43a43$36fc9800$5100a8c0@monika> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-05/txt/msg00106.txt.bz2 >>>> >manjo@nefertiti:~/projects/src> cc -o ~/tests/test ~/tests/test.c >>>> >manjo@nefertiti:~/projects/src> ./gdb/gdb ~/tests/test >>>> >GNU gdb 2004-04-17-cvs >>>> >Copyright 2004 Free Software Foundation, Inc. >>>> >GDB is free software, covered by the GNU General Public License, and >> >>> you >> >>>> >are >>>> >welcome to change it and/or distribute copies of it under certain >>>> >conditions. >>>> >Type "show copying" to see the conditions. >>>> >There is absolutely no warranty for GDB. Type "show warranty" for >>>> >details. >>>> >This GDB was configured as "powerpc64-gnu-linux"...Using host >> >>> libthread_db >> >>>> >libra >>>> >ry "/lib64/tls/libthread_db.so.1". >>>> > >>>> >(gdb) list >>>> >1 ../sysdeps/powerpc/powerpc32/elf/start.S: No such file or >>>> >directory. >>>> > in ../sysdeps/powerpc/powerpc32/elf/start.S >>>> >(gdb) quit >>>> > >>>> > > > > IMHO this output is simply misleading, it should print something > meaningful, like no symbols found, or no debug info in executable, or > compile with -g to generate more debug info etc.... 'file not found' is > not a clear indicator of what is going on. As others pointed out, the above is correct. It found debug information for ``entry-point'' and then tried to use it. Only to barf because the the corresponding source files were not installed. There's not much GDB can do when a user's program contains debug info but is missing the corresponding source. What happens if you enter: (gdb) list main Andrew