From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3307 invoked by alias); 8 Feb 2002 13:16:27 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 3209 invoked from network); 8 Feb 2002 13:16:14 -0000 Received: from unknown (HELO executor.cambridge.redhat.com) (195.224.55.237) by sources.redhat.com with SMTP; 8 Feb 2002 13:16:14 -0000 Received: from prospero.cambridge.redhat.com (dell-paw-2.cambridge.redhat.com [195.224.55.226]) by executor.cambridge.redhat.com (Postfix) with ESMTP id 55678ABB01; Fri, 8 Feb 2002 13:16:13 +0000 (GMT) Received: by prospero.cambridge.redhat.com (Postfix, from userid 4046) id E5A7EF7AA3; Fri, 8 Feb 2002 13:16:10 +0000 (GMT) To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: function pointer stabs (was Re: RFA: MI tests: tolerate prototypes) References: <20020203210609.E5E035E9DE@zwingli.cygnus.com> <20020203180133.C26302@nevyn.them.org> <20020205202132.A17384@nevyn.them.org> From: Jason Merrill In-Reply-To: <20020205202132.A17384@nevyn.them.org> (Daniel Jacobowitz's message of "Tue, 5 Feb 2002 20:21:32 -0500") Date: Fri, 08 Feb 2002 05:16:00 -0000 Message-ID: User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-02/txt/msg00224.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: > Of course those have the same types. But even if you differentiate > them, stabs only describes function pointers by their return type. > Quite regrettable; it must be a GCC bug or at least limitation. This > is the one that's actually related to the patch at the start of this > thread. I think that the patch is fine, but that this should go on our > list of things to fix in GCC's debug output. Jason, I don't suppose > you could look at it? The 'right' thing to do would be to emit the Sun > extension for any prototyped function or properly declared (prototyped, > essentially) function pointer. >On Tue, Feb 05, 2002 at 06:56:04PM -0500, Jim Blandy wrote: >> Anyway, there's a standard syntax for prototyped function types >> defined in the STABS manual. GDB even reads it. If GCC would just >> emit it, things would be better. Looking at stabsread.c:read_type:case 'f', I don't see any support for reading parameter types. Also, the spec in stabs.texi seems to describe different extensions for expressing parameters to actual functions versus function pointers. Jason