> > Tom> I don't have any issue with this, but I do wonder if > > Tom> riscv_type_alignment can be removed and/or simplified in favor > > Tom> type_align and the gdbarch method. > > > > Also now I wonder whether the TYPE_CODE_RANGE case in > > gdbtypes.c:type_align ought to be changed. Right now it just returns 0, > > which means "cannot be determined". > > Makes sense to me. I don't see this as being any problem at all, but > just in case, Let's make the change internally at AdaCore, and > have it be evaluated on all our platforms. Attached is a patch which does just that. gdb/ChangeLog: * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as integers and enumeration types. Tested on x86_64-linux. Also tested on a variety of platforms (with CPUs being ARM, AArch64, Leon3 (SPARC-like), PowerPC, PowerPC64, RV64, Visium, x86, x86_64). OK to push? -- Joel