]> 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:07:56 +0000 (13:07 +0100)
commitccf2e7a93a78aabdab78b730cca5cea01f92c305
tree8d963bc8a7f595a9d712db66fe18df19608a937d
parent029fdef75d32dd44284b97f29d38f92741162594
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