commit | 3672e3262210d1a08a3fdc44569ea8b5696c43cc | [log] [tgz] |
---|---|---|
author | Nick Alcock <nick.alcock@oracle.com> | Thu Mar 23 00:15:17 2023 +0000 |
committer | Nick Alcock <nick.alcock@oracle.com> | Fri Mar 24 13:37:32 2023 +0000 |
tree | c943257469b7e0a989a265e32089319fd9e75254 | |
parent | 04d91c807eaf4395472409a53e2acd9ad89683f0 [diff] |
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.