This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/22501] Incorrect sizeof(symbol) == 4 on a 64-bit platform
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 27 Nov 2017 11:45:14 +0000
- Subject: [Bug gdb/22501] Incorrect sizeof(symbol) == 4 on a 64-bit platform
- Auto-submitted: auto-generated
- References: <bug-22501-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22501
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
The problem is that without debug info (-g), GDB can't know that
"__glib_assert_msg" is a "char *". And then, in all released versions,
if GDB doesn't know the type of the object, it assumes "int",
which has sizeof 4.
This assumption was recently removed in GDB master (soon-to-be gdb 8.1),
exactly because it's very confusing:
https://sourceware.org/ml/gdb-patches/2017-07/msg00137.html
specifically:
https://sourceware.org/ml/gdb-patches/2017-07/msg00150.html
--
You are receiving this mail because:
You are on the CC list for the bug.