From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8723 invoked by alias); 7 Nov 2004 16:29:00 -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 8547 invoked from network); 7 Nov 2004 16:28:56 -0000 Received: from unknown (HELO walton.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org with SMTP; 7 Nov 2004 16:28:56 -0000 Received: from elgar.sibelius.xs4all.nl (elgar.sibelius.xs4all.nl [192.168.0.2]) by walton.sibelius.xs4all.nl (8.13.0/8.13.0) with ESMTP id iA7GSf58012013; Sun, 7 Nov 2004 17:28:41 +0100 (CET) Received: from elgar.sibelius.xs4all.nl (localhost [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6) with ESMTP id iA7GSfet022613; Sun, 7 Nov 2004 17:28:41 +0100 (CET) (envelope-from kettenis@elgar.sibelius.xs4all.nl) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.12.6p3/8.12.6/Submit) id iA7GSfwL022610; Sun, 7 Nov 2004 17:28:41 +0100 (CET) Date: Sun, 07 Nov 2004 17:16:00 -0000 Message-Id: <200411071628.iA7GSfwL022610@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: gcc@gcc.gnu.org, binutils@sources.redhat.com, echristo@redhat.com, seufer@csv.ica.uni-stuttgart.de, gdb@sources.redhat.com In-reply-to: <20041107153144.GA7039@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 7 Nov 2004 10:31:44 -0500) Subject: Re: Mixing 32-bit and 64-bit DWARF2/3 sections References: <200411071428.iA7ES7Fx003013@elgar.sibelius.xs4all.nl> <20041107153144.GA7039@nevyn.them.org> X-SW-Source: 2004-11/txt/msg00059.txt.bz2 Date: Sun, 7 Nov 2004 10:31:44 -0500 From: Daniel Jacobowitz On Sun, Nov 07, 2004 at 03:28:07PM +0100, Mark Kettenis wrote: > Currently GDB barfs when you use it on an executable that contains > compilation units that mix 32-bit and 64-bit DWARF sections. Looking > at the (latest?) DWARF3 draft it doesn't seem to be unreasonable that > it does so: > > "The 32-bit and 64-bit DWARF format conventions must not be > intermixed within a single compilation unit." I'd read that as saying that GDB should support what you describe. This isn't mixing them within a single compilation unit. What falls down? No I'm really talking about mixing 32-bit and 64-bit DWARF format within the same compilation unit. In the case of OpenBSD/mips64 GCC generates a 32-bit .debug_info section and .file directives that contain the line info. These .file directives are then converted by gas into 64-bit .debug_line sections. When GDB reads these it dumps core. I'm working on patches to fix this, but I'm not yet completely satisfied with them. Mark