From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24079 invoked by alias); 6 Feb 2003 14:50: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 24071 invoked from network); 6 Feb 2003 14:50:54 -0000 Received: from unknown (HELO ns.nts.cz) (193.165.124.1) by 172.16.49.205 with SMTP; 6 Feb 2003 14:50:54 -0000 Received: from gw.ales.st.cz (ns.ales.cz [193.165.124.195]) by ns.nts.cz (8.11.6/8.11.6) with ESMTP id h16EjQ430332 for ; Thu, 6 Feb 2003 15:45:26 +0100 Received: from localhost (gw.ales.st.cz) [127.0.0.1] by gw.ales.st.cz with esmtp (Exim 3.12 #1 (Debian)) id 18gnMb-00060X-00; Thu, 06 Feb 2003 15:50:53 +0100 Received: from mirab.ales.st.cz (ales.cz) [192.168.100.133] by gw.ales.st.cz with esmtp (Exim 3.12 #1 (Debian)) id 18gnMb-00060V-00; Thu, 06 Feb 2003 15:50:53 +0100 Message-ID: <3E42841B.3090602@ales.cz> Date: Thu, 06 Feb 2003 14:50:00 -0000 From: Miroslav Novy User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.3b) Gecko/20030126 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: How to debug a 64bits application? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-02/txt/msg00126.txt.bz2 I used gcc 3.2.1 (downloaded as a package from Sun freeware) with parameter -m64 (generated code for 64-bit environment) on OS Solaris 2.8 on UltraSPARC-IIe cpu (SunBlade 150) and I can't debug it. Example: #include int main (int argc, char *argv[]) { printf ("program: %s\n", argv[0]); return 1; } bash-2.03$ gcc -g -m64 -Wall foo.c -o foo bash-2.03$ ./foo program: ./foo bash-2.03$ gdb foo GNU gdb 5.0 Copyright 2000 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 "sparc-sun-solaris2.8"...Dwarf Error: Cannot handle DW_FORM _strp in DWARF reader. (gdb) r Starting program: /Users/mnovy/work/Testy/compute2/foo procfs:4036 -- process not stopped. procfs: ...giving up... Thank you very much for the help Mira