aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2019-02-17 10:04:57 -0500
committerJoel Brobecker <brobecker@adacore.com>2019-02-17 10:04:57 -0500
commit75ba10dc558a450c7dbcdc24f816f6709f2b29f7 (patch)
tree28e15ea6d5eb42ee04b532a4a0c77b150d734c52 /gdb/source.c
parenta2cd4f14750ae27ea5c250c98965eef842ee57db (diff)
downloadgdb-75ba10dc558a450c7dbcdc24f816f6709f2b29f7.zip
gdb-75ba10dc558a450c7dbcdc24f816f6709f2b29f7.tar.gz
gdb-75ba10dc558a450c7dbcdc24f816f6709f2b29f7.tar.bz2
type_align: handle range types the same as ints and enums
This commit enhances type_align to handle TYPE_CODE_RANGE types the same as integers and enums, rather than returning zero, which means for this function that it could not determine its alignment. 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).
Diffstat (limited to 'gdb/source.c')
0 files changed, 0 insertions, 0 deletions