From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8662 invoked by alias); 18 Jun 2006 01:16:43 -0000 Received: (qmail 8654 invoked by uid 22791); 18 Jun 2006 01:16:42 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 18 Jun 2006 01:16:40 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by sibelius.xs4all.nl (8.13.4/8.13.4) with ESMTP id k5I1E5TR013762; Sun, 18 Jun 2006 03:14:06 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5I1E5e3032035; Sun, 18 Jun 2006 03:14:05 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.6/8.13.6/Submit) id k5I1E5nu017691; Sun, 18 Jun 2006 03:14:05 +0200 (CEST) Date: Sun, 18 Jun 2006 01:16:00 -0000 Message-Id: <200606180114.k5I1E5nu017691@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: julian@codesourcery.com CC: gdb-patches@sourceware.org, dan@codesourcery.com, julian@codesourcery.com In-reply-to: <448969B2.9010202@codesourcery.com> (message from Julian Brown on Fri, 09 Jun 2006 13:29:38 +0100) Subject: Re: [PATCH] Interpret DW_TAG_unspecified_type as void References: <448969B2.9010202@codesourcery.com> 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/msg00250.txt.bz2 > Date: Fri, 09 Jun 2006 13:29:38 +0100 > From: Julian Brown > > Hi, > > This is part of a series of patches from a CodeSourcery branch which > enable the output of ARM's RVCT 2.2 compiler to be debugged with gdb. > > This patch handles the C/C++ interpretation of the DWARF 3 construct > DW_TAG_unspecified_type as void. This is used in representing e.g. > pointer-to-void types. Other languages will currently be handled in > exactly the same way; though I'm not entirely sure if that's a sensible > default, I don't know what would be better. (Re: section 5.2 of the > DWARF 3 doc.) > > Tested natively on x86_64-unknown-linux-gnu and cross to arm-none-eabi > with no change in results. Tests against the ARM compiler are improved > somewhat. > > OK to apply? I haven't looked into what the DWARF spec actually says, but traditionally unspecified types in C default to 'int', not 'void'.