From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8519 invoked by alias); 18 Feb 2002 14:33:32 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 8412 invoked from network); 18 Feb 2002 14:33:27 -0000 Received: from unknown (HELO pali.cps.cmich.edu) (141.209.131.81) by sources.redhat.com with SMTP; 18 Feb 2002 14:33:27 -0000 Received: from localhost (ishwar@localhost) by pali.cps.cmich.edu (8.11.6/8.11.6) with ESMTP id g1IEkCE29748 for ; Mon, 18 Feb 2002 09:46:12 -0500 Date: Mon, 18 Feb 2002 08:51:00 -0000 From: Ish Rattan To: Subject: gcc-3.0/3.0.3 and gdb-5.1 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-02/txt/msg00172.txt.bz2 System is SunBlade-100, under Solaris-2.8. gcc-2.95.2 (from Sunfreeware CD). I compiled gcc-3.0 to 64-bit binary capable of generating 64-bit binaries with /usr/ccs/as and /usr/ccs/bin/ld). It seems to work. I tried to use gdb (with a binary generated with -g option) and it did not work. So, I compled gdb-5.1 sources with 64-bit compiler too. No success again. Partial gdb session is follows: ... (gdb) b main Cannot access memory at address 0x894 (gdb) run Starting program: /local/home/ishwar/asm-new/a.out Hello, world!! Program exited normally. (gdb) delete 1 No breakpoint number 1. (gdb) b main Cannot access memory at address 0x894 (gdb) b printf Cannot access memory at address 0xffffffff7f28d2fc (gdb) run Starting program: /local/home/ishwar/asm-new/a.out Hello, world!! Program exited normally. ---- If the C-program is compiled without -g, the behavior is different. ... This GDB was configured as "sparc-sun-solaris2.8"... (no debugging symbols found)... (gdb) b main Breakpoint 1 at 0x100000898 (gdb) b printf Breakpoint 2 at 0x100100b00 (gdb) run Starting program: /local/home/ishwar/asm-new/a.out (no debugging symbols found)...Breakpoint 2 at 0xffffffff7f28d300 (no debugging symbols found)...(no debugging symbols found)... Breakpoint 1, 0x100000898 in main () (gdb) cont Continuing. Breakpoint 2, 0xffffffff7f28d300 in printf () from /usr/lib/64/libc.so.1 (gdb) cont Continuing. Hello, world!! Program exited normally. --- Looks like that gdb-5.1 does not have support for 64-bit version of gcc-3.0? -ishwar