]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: create: vlen growth and prefix addition (NEEDS REVIEW)
authorNick Alcock <nick.alcock@oracle.com>
Thu, 24 Apr 2025 14:48:16 +0000 (15:48 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:07:42 +0000 (18:07 +0100)
commita93ad066f717d47a97700a09c1c744edaefb327d
tree4aaa9e45874d2cfaabde9d47dc4c024b65138c50
parent64b65a0a34347c21d30fa44ada3dfcf646a6423f
libctf: create: vlen growth and prefix addition (NEEDS REVIEW)

This commit modifies ctf_grow_vlen to account for the recent changes to
ctf_dtdef_t, and adds a new ctf_add_prefix function to add a prefix to an
existing type, moving the dtd_data and dtd_vlen up accordinly.

It deserves close review, since this is probably the single greatest bug
cluster in libctf: the number of times I added to a variable of type
ctf_type_t and assumed it would move it in bytes rather than ctf_type_t
units is hard to believe.
libctf/ctf-create.c