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 exp/17095] print alignof (type or expression)


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.

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