From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13016 invoked by alias); 17 May 2004 17:43:58 -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 12999 invoked from network); 17 May 2004 17:43:57 -0000 Received: from unknown (HELO e34.co.us.ibm.com) (32.97.110.132) by sourceware.org with SMTP; 17 May 2004 17:43:57 -0000 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e34.co.us.ibm.com (8.12.10/8.12.2) with ESMTP id i4HHhuWv085506 for ; Mon, 17 May 2004 13:43:56 -0400 Received: from austin.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i4HHh2CG359684 for ; Mon, 17 May 2004 11:43:56 -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 i4HFeuoS034114 for ; Mon, 17 May 2004 10:40:56 -0500 Date: Mon, 17 May 2004 17:43:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb@sources.redhat.com Subject: Fortran programs & list command output Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-05/txt/msg00103.txt.bz2 This is a follow up on an email I send out earlier wrt to list command not able to output correct information. The list command does not see the debug infomation in the case of fortran programs?? I have below a senario on a PPC64 machine. I compiled a simple hello world program in fortran --------------------- hellow.f --------------------- * C Hello world program * PROGRAM HELLOW WRITE(UNIT=*, FMT=*) 'Hello World' END ---------------------------------------------------- g77 -g -m64 -o hellowf hellow.f manjo@nefertiti:~/projects/src> ./gdb/gdb ~/tests/hellow 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 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) In the above case, the list command does not see the debug information even if the program is compiled with "-g" option. The same program when written in C -------------------------- test.c -------------------------- #include main() { printf("hello world\n"); } ------------------------------------------------------------- cc -g -m64 -o test test.c 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 library "/lib64/tls/libthread_db.so.1". (gdb) list 1 #include 2 3 main() 4 { 5 printf("hello world\n"); 6 } 7 (gdb) quit Which is the correct output for the list command. Any thoughts?? -- Manoj Iyer