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

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.

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