* [Bug default/27334] New: Track bitfield size change
@ 2021-02-03 13:07 dodji at redhat dot com
2021-02-03 13:08 ` [Bug default/27334] " dodji at redhat dot com
2021-02-03 16:25 ` woodard at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: dodji at redhat dot com @ 2021-02-03 13:07 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=27334
Bug ID: 27334
Summary: Track bitfield size change
Product: libabigail
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: default
Assignee: dodji at redhat dot com
Reporter: dodji at redhat dot com
CC: libabigail at sourceware dot org
Target Milestone: ---
In DWARF, the bitfield-ness is a property of the data member.
For instance consider this type:
struct S
{
int m;
};
Here is what its Debug Information Entry, from DWARF would look like:
[ 2d] structure_type abbrev: 2
name (string) "S"
byte_size (data1) 4
decl_file (data1) foo.c (1)
decl_line (data1) 1
decl_column (data1) 8
sibling (ref4) [ 47]
[ 38] member abbrev: 3
name (string) "m"
decl_file (data1) foo.c (1)
decl_line (data1) 3
decl_column (data1) 7
type (ref4) [ 47]
byte_size (data1) 4
bit_size (data1) 2
bit_offset (data1) 30
data_member_location (data1) 0
[ 47] base_type abbrev: 4
byte_size (data1) 4
encoding (data1) signed (5)
name (string) "int"
There, you can see that the data member "m" has a DW_AT_bit_size attribute
which value is set to 2. It also has a DW_AT_byte_size attribute set to 4.
It's type however, is an integer, of size 4, defined at offset 0x47.
The presence of the DW_AT_{bit,byte}_size attributes on the DIE of "m" is how
we detect that "m" is a bitfield.
Today, libabigail doesn't record that information in its internal
representation.
It ought to represent it and it ought to detect and report changes to that
information. It also need to save that information into the ABIXML textual
representation and should be able to read it back from it.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug default/27334] Track bitfield size change
2021-02-03 13:07 [Bug default/27334] New: Track bitfield size change dodji at redhat dot com
@ 2021-02-03 13:08 ` dodji at redhat dot com
2021-02-03 16:25 ` woodard at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: dodji at redhat dot com @ 2021-02-03 13:08 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=27334
dodji at redhat dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug default/27334] Track bitfield size change
2021-02-03 13:07 [Bug default/27334] New: Track bitfield size change dodji at redhat dot com
2021-02-03 13:08 ` [Bug default/27334] " dodji at redhat dot com
@ 2021-02-03 16:25 ` woodard at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: woodard at redhat dot com @ 2021-02-03 16:25 UTC (permalink / raw)
To: libabigail
https://sourceware.org/bugzilla/show_bug.cgi?id=27334
Ben Woodard <woodard at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |woodard at redhat dot com
Blocks| |27019
Referenced Bugs:
https://sourceware.org/bugzilla/show_bug.cgi?id=27019
[Bug 27019] BUILD metabug
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-03 16:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-03 13:07 [Bug default/27334] New: Track bitfield size change dodji at redhat dot com
2021-02-03 13:08 ` [Bug default/27334] " dodji at redhat dot com
2021-02-03 16:25 ` woodard at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).