]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: create: fix vlen / vbytes confusion
authorNick Alcock <nick.alcock@oracle.com>
Thu, 6 Feb 2025 13:02:50 +0000 (13:02 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 28 Feb 2025 15:13:24 +0000 (15:13 +0000)
commit97a72b2a35dbd218bc61f39cc5fd7b4d18c3126b
treeaedb58ea8c04dbf75f1a88a75455263de8b3156a
parentdc93d01ff286fd5711be25a534d30aacc6164c81
libctf: create: fix vlen / vbytes confusion

The initial_vlen parameter to ctf_add_generic is misnamed: it's not the
initial vlen (the initial number of members of a struct, etc), but rather
the initial size of the vlen region.  We have a term for that, vbytes: use
it.

Amazingly this doesn't seem to have caused any bugs to creep in.
libctf/ctf-create.c
libctf/ctf-impl.h