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 #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.

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