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: "chris dot interim at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 11 Feb 2009 22:17:24 -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 chris dot interim at gmail dot com 2009-02-11 22:17 -------
For completeness:
gdb
GNU gdb Fedora (6.8-23.fc9)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
(gdb) print sizeof( int(*)(int *) )
$1 = 1
(gdb) ptype int(*)(int *)
type = int ()
(gdb) print sizeof( int () )
$2 = 1
(gdb) print sizeof( int )
$3 = 4
(gdb) print sizeof( int * )
$4 = 4
(gdb) quit
--
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.