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 15:03:19 +0000

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

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

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

commit bddd62e188c120600857209ede4a23ab3ccc4cac
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]