From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9882 invoked by alias); 15 Jul 2010 15:48:50 -0000 Received: (qmail 9871 invoked by uid 22791); 15 Jul 2010 15:48:49 -0000 X-SWARE-Spam-Status: No, hits=-6.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Jul 2010 15:48:44 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6FFmZb3001493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Jul 2010 11:48:35 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6FFmYY6006260; Thu, 15 Jul 2010 11:48:35 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o6FFmYAO021053; Thu, 15 Jul 2010 11:48:34 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id BFEB13782A3; Thu, 15 Jul 2010 09:48:33 -0600 (MDT) From: Tom Tromey To: "Maciej W. Rozycki" Cc: gdb@sourceware.org Subject: Re: MIPS: 64-bit DWARF References: <4BE16915.7080501@codesourcery.com> <20100505143213.GA4735@caradoc.them.org> <4BE187D8.4050804@codesourcery.com> <20100507132310.GA6374@host0.dyn.jankratochvil.net> <87sk431a3j.fsf@dirichlet.schwinge.homeip.net> <87fwzxvslw.fsf_-_@dirichlet.schwinge.homeip.net> <87eif6v450.fsf@dirichlet.schwinge.homeip.net> <4C3DEC14.8090601@caviumnetworks.com> Date: Thu, 15 Jul 2010 15:48:00 -0000 In-Reply-To: (Maciej W. Rozycki's message of "Wed, 14 Jul 2010 19:44:27 +0100 (BST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00047.txt.bz2 >>>>> "Maciej" == Maciej W Rozycki writes: I trimmed the CCs. Maciej> GDB as of 6.8 didn't cope at all with 64-bit DWARF records that Maciej> were generated for n64 binaries before the switch (for the MIPS Maciej> platform, that is -- I'd expect it to work for some others, Maciej> especially ones that have always been 64-bit like the Alpha) -- Maciej> the usual symptom was a complete exhaustion of the stack space Maciej> followed by a crash (tested natively only). Could you try a newer gdb? And, if it still fails, file a bug report? gdb isn't fully ready for 64 bit DWARF (e.g., CU offsets are still just unsigned ints), but it shouldn't crash. Maciej> TE_IRIX refers to the original 64-bit DWARF stuff invented by Maciej> SGI that predates DWARF-3 and differs slightly from the latter. Maciej> This may perhaps be the reason of the GDB crash -- it may have Maciej> this SGI variant hardcoded for the MIPS target or suchlike. gdb's dwarf reader doesn't use the target for this. It just recognizes the SGI approach unconditionally. See dwarf2read.c:read_initial_length. Tom