]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: create: check the right root-visible flag when adding enumerands
authorNick Alcock <nick.alcock@oracle.com>
Thu, 26 Jun 2025 14:47:25 +0000 (15:47 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 27 Jun 2025 12:08:28 +0000 (13:08 +0100)
commit8084797687b52e55c7330eea4a11b1011d3cb89c
treeaf494ce46d28c5865be1632570989498ea06bc36
parent22381f3dfd1a9431f4c6d01294a54b576d16a6db
libctf: create: check the right root-visible flag when adding enumerands

The root-visible flag we're dealing with here is directly out of the dict,
not a flag passed in to the API, so it does not have the values CTF_ADD_ROOT
or CTF_ADD_NONROOT: instead it's simply zero for non-root-visible, nonzero
otherwise.  Fix the test.

libctf/
* ctf-create.c (ctf_add_enumerator): Fix root-visibility test.
libctf/ctf-create.c