This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug gdb/9837] sizeof( int(*)(int *) ) == 1?


------- 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.


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