From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29306 invoked by alias); 14 May 2004 18:29:56 -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 29298 invoked from network); 14 May 2004 18:29:56 -0000 Received: from unknown (HELO e3.ny.us.ibm.com) (32.97.182.103) by sourceware.org with SMTP; 14 May 2004 18:29:56 -0000 Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com [9.56.224.150]) by e3.ny.us.ibm.com (8.12.10/8.12.2) with ESMTP id i4EITshL762922 for ; Fri, 14 May 2004 14:29:54 -0400 Received: from austin.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by northrelay02.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i4EIUO8f088932 for ; Fri, 14 May 2004 14:30:25 -0400 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 i4EITrQC063236 for ; Fri, 14 May 2004 13:29:53 -0500 Date: Fri, 14 May 2004 18:29:00 -0000 From: Manoj Iyer X-X-Sender: manjo@lazy To: gdb@sources.redhat.com Subject: List command question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2004-05/txt/msg00089.txt.bz2 List command has different out put when the program is compiled with -g option and when it is not... I checked out the lastest CVS head of GDB and wrote a small hello world program, comppiled it with and without -g on a PowerPC 64bit machine, and here is the diff in output. 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 manjo@nefertiti:~/projects/src> cc -g -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 #include 2 3 main() 4 { 5 printf("hello world\n"); 6 } 7 (gdb) I am not sure how the list command should look like when no "-g" is used to compile the test. Any suggestion? comments?? Thanks Manoj Iyer