From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17273 invoked by alias); 16 May 2013 17:52:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 17263 invoked by uid 89); 16 May 2013 17:52:31 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,TW_BJ autolearn=ham version=3.3.1 Received: from elasmtp-spurfowl.atl.sa.earthlink.net (HELO elasmtp-spurfowl.atl.sa.earthlink.net) (209.86.89.66) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 16 May 2013 17:52:31 +0000 Received: from [68.96.200.16] (helo=macbook2.local) by elasmtp-spurfowl.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1Ud2Lt-0000JA-3S for gdb-patches@sourceware.org; Thu, 16 May 2013 13:52:29 -0400 Message-ID: <51951CD7.3070003@earthlink.net> Date: Thu, 16 May 2013 17:52:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [RFA/dwarf 2/2] Mark all functions as prototyped except C functions. References: <87txm6dhhm.fsf@fleche.redhat.com> <1368623983-10625-1-git-send-email-brobecker@adacore.com> <1368623983-10625-3-git-send-email-brobecker@adacore.com> <87ip2k2s8u.fsf@fleche.redhat.com> <20130516073804.GE5555@adacore.com> In-Reply-To: <20130516073804.GE5555@adacore.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae6f8838ff913eba0cc1426638a40ef67e972de0d01da9403c4c2295cdd36411836fd407b4638136350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-SW-Source: 2013-05/txt/msg00637.txt.bz2 On 5/16/13 12:38 AM, Joel Brobecker wrote: >> Joel> + /* The DWARF standard implies that the DW_AT_prototyped attribute >> Joel> + is only meaninful to C. So assume that non-C functions are >> Joel> + always prototyped. */ >> Joel> + if (cu->language != language_c) >> Joel> + return 1; >> >> Can Objective C have un-prototyped functions? >> I don't know. But if it can, then it should be checked here. > > Hmmm, I am not 100% sure, but some internet searches suggest > that this is probably true. Thanks! Attached is the updated patch, > just adding language_objc to the condition, and adjusting the > comment accordingly. Objective-C (1.0 or 2.0) doesn't require prototypes; in general ObjC tries to be purely an extension to C, and orthogonal to C dialect. Stan stan@codesourcery.com