freebsd-dev/cddl/contrib/opensolaris
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
..
cmd Address compiler warnings in C code used by the DTrace test suite. 2020-09-19 16:15:22 +00:00
common When copying types from one CTF container to another, ensure that we 2020-11-20 17:26:02 +00:00
head MFV r270197: 2014-08-22 22:13:36 +00:00
lib Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
tools/ctf Merge OpenZFS support in to HEAD. 2020-08-25 02:21:27 +00:00
OPENSOLARIS.LICENSE