bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug libctf/30264] offsets of fields in unnamed structures/unions are wr


From: cvs-commit at gcc dot gnu.org
Subject: [Bug libctf/30264] offsets of fields in unnamed structures/unions are wrong
Date: Fri, 24 Mar 2023 14:08:57 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=30264

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Nick Alcock <nix@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3672e3262210d1a08a3fdc44569ea8b5696c43cc

commit 3672e3262210d1a08a3fdc44569ea8b5696c43cc
Author: Nick Alcock <nick.alcock@oracle.com>
Date:   Thu Mar 23 00:15:17 2023 +0000

    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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]