This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/12521] sizeof() wrong
- From: "fchen0000 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 21 Mar 2012 03:52:36 +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
fchen <fchen0000 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fchen0000 at gmail dot com
Version|7.0 |7.4
--- Comment #2 from fchen <fchen0000 at gmail dot com> 2012-03-21 03:52:36 UTC ---
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
--
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.