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: "bugzilla at tecnocode dot co.uk" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 27 Nov 2017 12:00:40 +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 #2 from Philip Withnall <bugzilla at tecnocode dot co.uk> ---
(In reply to Pedro Alves from comment #1)
> 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
I see, that explains things. I look forward to your patch series landing. Is
there a bug which this one should be duped to?
--
You are receiving this mail because:
You are on the CC list for the bug.