freebsd-dev/cddl/contrib/opensolaris/common
Jonathan T. Looney 96fbe51956 When copying types from one CTF container to another, ensure that we
encode 0-length (i.e. "") structure and union member names as offset 0.
This ensures that we don't confuse other parts of the CTF code which
expect this encoding.

This resolves a Dtrace error resolving members of anonymous structs/unions
within the (struct mbuf) type which some users were seeing after r366908.

While here, update the code in ctf_add_generic() to encode 0-length type
names as offset 0.

Reviewed by:	markj
MFC after:	2 weeks
Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D27246
2020-11-20 17:26:02 +00:00
..
ctf When copying types from one CTF container to another, ensure that we 2020-11-20 17:26:02 +00:00
util Mechanically convert cddl sun #ifdef's to illumos 2015-01-17 14:44:59 +00:00