From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18670 invoked by alias); 14 Mar 2003 21:36:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 18656 invoked by uid 71); 14 Mar 2003 21:36:00 -0000 Date: Fri, 14 Mar 2003 21:36:00 -0000 Message-ID: <20030314213600.18654.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Daniel Jacobowitz Subject: Re: debug/9161: stabs: No function argument debug info for function pointers Reply-To: Daniel Jacobowitz X-SW-Source: 2003-03/txt/msg00889.txt.bz2 List-Id: The following reply was made to PR debug/9161; it has been noted by GNATS. From: Daniel Jacobowitz To: bangerth@dealii.org, dave@rebuzz.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: debug/9161: stabs: No function argument debug info for function pointers Date: Fri, 14 Mar 2003 16:26:45 -0500 On Fri, Mar 14, 2003 at 09:23:34PM -0000, bangerth@dealii.org wrote: > Old Synopsis: No function argument debug info for function pointers > New Synopsis: stabs: No function argument debug info for function pointers > > State-Changed-From-To: open->analyzed > State-Changed-By: bangerth > State-Changed-When: Fri Mar 14 21:23:33 2003 > State-Changed-Why: > Confirmed also on x86-linux with mainline, when using > -gstabs: > > g/x> cat x.cc > int (*p1) (); > int (*p2) (int); > > int main () > {} > > g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -gstabs x.cc > > g/x> gdb a.out > GNU gdb 5.1.1 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-suse-linux"... > (gdb) ptype p1 > type = int (*)(void) > (gdb) ptype p2 > type = int (*)(void) Yes. There's a stabs syntax for this that GCC doesn't support. I think GDB would recognize it if we generated it, but I don't really remember. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer