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 12:06:13 +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
--- Comment #3 from Pedro Alves <palves at redhat dot com> ---
(In reply to Philip Withnall from comment #2)
> I see, that explains things. I look forward to your patch series landing.
It already landed a while ago. If you try out current master, you'll get an
error instead of "= 4".
> Is there a bug which this one should be duped to?
There probably is, though I haven't looked. This is a very frequent source of
confusion.
For sizeof in particular, I'm wondering whether it makes sense (or rather if it
could ever be a problem) for GDB to use/print the size as recorded in the ELF
symbol table, when it is available. That might be doable. (though I probably
won't be able to try it myself soon enough). Not sure it's worth the trouble,
though.
--
You are receiving this mail because:
You are on the CC list for the bug.