diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2023-03-23 00:15:17 +0000 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2023-03-24 13:37:32 +0000 |
commit | 3672e3262210d1a08a3fdc44569ea8b5696c43cc (patch) | |
tree | c943257469b7e0a989a265e32089319fd9e75254 /libctf/ctf-subr.c | |
parent | 04d91c807eaf4395472409a53e2acd9ad89683f0 (diff) | |
download | binutils-3672e3262210d1a08a3fdc44569ea8b5696c43cc.zip binutils-3672e3262210d1a08a3fdc44569ea8b5696c43cc.tar.gz binutils-3672e3262210d1a08a3fdc44569ea8b5696c43cc.tar.bz2 |
libctf: get the offsets of fields of unnamed structs/unions right
We were failing to add the offsets of the containing struct/union
in this case, leading to all offsets being relative to the unnamed
struct/union itself.
libctf/
PR libctf/30264
* ctf-types.c (ctf_member_info): Add the offset of the unnamed
member of the current struct as necessary.
* testsuite/libctf-lookup/unnamed-field-info*: New test.
Diffstat (limited to 'libctf/ctf-subr.c')
0 files changed, 0 insertions, 0 deletions