This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/22501] Incorrect sizeof(symbol) == 4 on a 64-bit platform


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]