This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debug/9161: stabs: No function argument debug info for function pointers


On Fri, Mar 14, 2003 at 09:23:34PM -0000, bangerth at dealii dot 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]