From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8163 invoked by alias); 19 May 2004 02:24:32 -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 8120 invoked from network); 19 May 2004 02:24:30 -0000 Received: from unknown (HELO e33.co.us.ibm.com) (32.97.110.131) by sourceware.org with SMTP; 19 May 2004 02:24:30 -0000 Received: from westrelay04.boulder.ibm.com (westrelay04.boulder.ibm.com [9.17.193.32]) by e33.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i4J2Nn87188860; Tue, 18 May 2004 22:23:49 -0400 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay04.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i4J2MvK2199858; Tue, 18 May 2004 20:23:48 -0600 Received: from lazy.austin.ibm.com (lazy.austin.ibm.com [9.53.94.97]) by austin.ibm.com (8.12.10/8.12.10) with ESMTP id i4IMOeoS055526; Tue, 18 May 2004 17:24:40 -0500 Date: Wed, 19 May 2004 02:24:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: Andrew Cagney cc: Monika Chaddha , gdb@sources.redhat.com Subject: Re: List command question In-Reply-To: <40A905F7.5000502@gnu.org> Message-ID: References: <004801c43a43$36fc9800$5100a8c0@monika> <40A905F7.5000502@gnu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-05/txt/msg00127.txt.bz2 > 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 > I get no line number known for main... manjo@nefertiti:~/tests> gdb64 hellow1 GNU gdb 6.1 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 "ppc64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) list 1 ../sysdeps/powerpc/powerpc64/elf/start.S: No such file or directory. in ../sysdeps/powerpc/powerpc64/elf/start.S (gdb) list main No line number known for main. (gdb) But for a C program I get the following... manjo@nefertiti:~/tests> gdb64 ./test1 GNU gdb 6.1 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 "ppc64-suse-linux"...Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) list main 1 #include 2 3 main() 4 { 5 printf("hello world\n"); 6 } 7 (gdb)