From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 838E53858D32; Tue, 11 Apr 2023 15:38:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 838E53858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681227505; bh=3SpTqSGDXbQ+WR2bXj8MqbAtOICd29XzvodyEje+Udo=; h=From:To:Subject:Date:From; b=OZsNeUXW+3AdrbnaiVAj5uzfLkoBX2vVGU/M/9KxIKI5wtnitOZ0jh5JsENMFv4mW etCWhE4t+cb03A/U80/CDjcrbZ/huw8F3cm2zMWNwn8xSbrcCYhxwFBrwCgFBpZGAw MytWU0APuo+zZFjjiM8TJHbjWNtBk3Gv69HiKX0I= From: "dodji at redhat dot com" To: libabigail@sourceware.org Subject: [Bug default/30334] New: Support DW_TAG_iterface_type DIEs (for languages like D and Java) Date: Tue, 11 Apr 2023 15:38:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: libabigail X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dodji at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dodji at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30334 Bug ID: 30334 Summary: Support DW_TAG_iterface_type DIEs (for languages like D and Java) Product: libabigail Version: unspecified Status: NEW Severity: enhancement Priority: P2 Component: default Assignee: dodji at redhat dot com Reporter: dodji at redhat dot com CC: libabigail at sourceware dot org Target Milestone: --- The D language as well as the Java language support "interface" types. These can be generally implemented using the DW_TAG_interface_type DIE. Libabigail currently doesn't support this DIE. It could support it by constructing an abigail::ir::class_decl type, with a abigail::ir::class_decl::is_interface() accessor that returns true if the c= lass is an interface. That interface would thus allow only abstract member functions and constant data members. Here is what the DWARF 5 spec says: 5.7.2 Interface Type Entries The Java language defines =E2=80=9Cinterface=E2=80=9D types. An interface i= n Java is similar to a C++ or Java class with only abstract methods and constant data members. Interface types are represented by debugging information entries with the t= ag DW_TAG_interface_type. An interface type entry has a DW_AT_name attribute, whose value is a null-terminated string containing the type name. [...] --=20 You are receiving this mail because: You are on the CC list for the bug.=