diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2024-07-15 19:39:48 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2024-07-31 21:02:04 +0100 |
commit | 2b35088f30d95cd45bb572765a7b01260a1d8ee2 (patch) | |
tree | cfb6f72357065c90ffc5808aff3765a15c95ee84 /libctf/ctf-archive.c | |
parent | b404bf7270f9afada6d089624ab5e9b39fcf344c (diff) | |
download | binutils-2b35088f30d95cd45bb572765a7b01260a1d8ee2.zip binutils-2b35088f30d95cd45bb572765a7b01260a1d8ee2.tar.gz binutils-2b35088f30d95cd45bb572765a7b01260a1d8ee2.tar.bz2 |
libctf, dump: correctly dump non-root-visible types
The flag test when dumping non-root-visible tyeps was doubly wrong: the
flags word is a *bitfield* containing CTF_ADD_ROOT as one possible
value, so needs | and & testing, not just ==, and CTF_ADD_NONROOT is 0,
so cannot be tested for this way: one must check for the non-presence of
CTF_ADD_ROOT.
libctf/
* ctf-dump.c (ctf_dump_format_type): Fix non-root flag test.
Diffstat (limited to 'libctf/ctf-archive.c')
0 files changed, 0 insertions, 0 deletions