This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/9837] sizeof( int(*)(int *) ) == 1?
- From: "drow at false dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 11 Feb 2009 20:37:19 -0000
- Subject: [Bug gdb/9837] sizeof( int(*)(int *) ) == 1?
- References: <20090211201834.9837.chris.interim@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drow at false dot org 2009-02-11 20:37 -------
Subject: Re: New: sizeof( int(*)(int *) ) == 1?
On Wed, Feb 11, 2009 at 08:18:35PM -0000, chris dot interim at gmail dot com wrote:
> Walk up to a machine with gdb.
> Run gdb.
> Type "print sizeof( int(*)(int *) )"
>
> The result comes back as "1".
Try this to see the underlying problem:
(gdb) ptype int(*)(int *)
type = int ()
I can't find it now, but there should be another bug open about the
problems with function pointer types.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9837
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.