aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-04-06 11:02:04 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-04-11 23:40:25 +0100
commit41077b6625d16cc6c0c4b404a177a8850300b8a0 (patch)
treee640c63cbf1e3d28841c1139c5b412782a8fb5a7 /gdb/language.c
parent9f0272f8548164b024ff9fd151686b2b904a5d59 (diff)
downloadbinutils-41077b6625d16cc6c0c4b404a177a8850300b8a0.zip
binutils-41077b6625d16cc6c0c4b404a177a8850300b8a0.tar.gz
binutils-41077b6625d16cc6c0c4b404a177a8850300b8a0.tar.bz2
gdb: Fix alignment computation for structs with only static fields
The current code in gdbtypes.c:type_align incorrectly returns 0 as the alignment for a structure containing only static fields. After this patch the correct value of 1 is returned. The gdb.base/align.exp test is extended to cover this case. gdb/ChangeLog: * gdbtypes.c (type_align): A struct with no non-static fields also has alignment of 1. gdb/testsuite/ChangeLog: * gdb.base/align.exp: Extend test to cover structures containing only static fields.
Diffstat (limited to 'gdb/language.c')
0 files changed, 0 insertions, 0 deletions