From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31412 invoked by alias); 9 Jun 2006 12:39:08 -0000 Received: (qmail 31398 invoked by uid 22791); 9 Jun 2006 12:39:07 -0000 X-Spam-Check-By: sourceware.org Received: from intranet.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.6) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 Jun 2006 12:39:06 +0000 Received: (qmail 26262 invoked from network); 9 Jun 2006 12:18:30 -0000 Received: from unknown (HELO ?10.1.1.7?) (julian@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Jun 2006 12:18:30 -0000 Message-ID: <4489670E.40605@codesourcery.com> Date: Fri, 09 Jun 2006 12:39:00 -0000 From: Julian Brown User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) MIME-Version: 1.0 To: Eli Zaretskii CC: Jim Blandy , gdb-patches@sourceware.org, dan@codesourcery.com Subject: Re: [PATCH] Accept DWARF 3-format debug info References: <4488A920.9090705@codesourcery.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-06/txt/msg00092.txt.bz2 Eli Zaretskii wrote: >>Cc: gdb-patches@sourceware.org, Daniel Jacobowitz >>From: Jim Blandy >>Date: Thu, 08 Jun 2006 16:25:42 -0700 >> >>I think this patch is right. It's true that GDB doesn't support all >>of DWARF 3, but GDB's general philosophy is to garner as much >>information as it can, and punt the rest, which works well with >>DWARF's philosophy. So GDB shouldn't just punt entire compilation >>units because they're marked as DWARF 3. > > > I agree with the philosophy, but the devil is usually in the > details... > > In this case, what will happen when GDB sees a DWARF-3 feature it > doesn't yet support? I think we should make sure it displays a > warning message, instead of throwing an internal error (or some > similar fatal reaction). AIUI, the ideal is to just ignore the bits of DWARF which aren't yet understood, though I don't know how well that works in practice. The partial-unit case certainly causes unpleasant crashes at present, but I'd hope that that's an exception rather than a rule. (I, or one of the other sourcerers, may get to that particular case later.) Cheers, Julian