This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/12521] sizeof() wrong
- From: "sergiodj at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 27 Mar 2012 03:35:40 +0000
- Subject: [Bug gdb/12521] sizeof() wrong
- Auto-submitted: auto-generated
- References: <bug-12521-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12521
Sergio Durigan Junior <sergiodj at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sergiodj at redhat dot com
--- Comment #3 from Sergio Durigan Junior <sergiodj at redhat dot com> 2012-03-27 03:35:40 UTC ---
(In reply to comment #2)
> Attach gdb to /bin/ls or set architecture manually won't work. It's a bug.
>
> =============================================================================
> gdb /bin/ls
>
> GNU gdb (GDB) 7.4
> Copyright (C) 2012 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 "x86_64-unknown-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /bin/ls...(no debugging symbols found)...done.
> (gdb) whatis sizeof(float)
> type = int
> (gdb) show architecture
> The target architecture is set automatically (currently i386:x86-64)
> (gdb) set architecture i386:x86-64
> The target architecture is assumed to be i386:x86-64
> (gdb) whatis sizeof(float)
> type = int
What is the output you are expecting? `sizeof (float)' is giving the right
size of the `float' type.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.