This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug exp/17095] print alignof (type or expression)
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 20 Apr 2018 18:27:53 +0000
- Subject: [Bug exp/17095] print alignof (type or expression)
- Auto-submitted: auto-generated
- References: <bug-17095-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17095
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Actually implementing alignof in the expression parser is tricky,
because normally the alignment is not specified in the debug info,
and gdb doesn't know about the ABI rules here.
Maybe mirroring DW_AT_alignment for pretty-printers would be good
enough. At least rustc seems to emit this for many things -- at
least all the structures I've looked at (though not pointer types
or base types... so maybe not as useful as I thought).
--
You are receiving this mail because:
You are on the CC list for the bug.