From 73197b540cc5f0434c409b68ca9e1a514a6ce91b Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 25 Nov 2020 15:40:47 +0000 Subject: 13336 ctfconvert should be able to unconditionally attempt conversion Reviewed by: Robert Mustacchi Approved by: Rich Lowe --- usr/src/lib/libctf/common/libctf.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'usr/src/lib/libctf/common/libctf.h') diff --git a/usr/src/lib/libctf/common/libctf.h b/usr/src/lib/libctf/common/libctf.h index 5f0721e99f..8f6a232057 100644 --- a/usr/src/lib/libctf/common/libctf.h +++ b/usr/src/lib/libctf/common/libctf.h @@ -91,11 +91,18 @@ typedef enum ctf_convert_flag { * to CTF format, such as an enum with too many values. This flag * allows us to continue and convert what we can. */ - CTF_ALLOW_TRUNCATION = 0x02 + CTF_ALLOW_TRUNCATION = 0x02, + /* + * Conversion is not usually attempted for objects that don't appear + * to be built from C sources. This flag overrides this and attempts + * conversion anyway. + */ + CTF_FORCE_CONVERSION = 0x04 } ctf_convert_flag_t; #define CTF_CONVERT_ALL_FLAGS (CTF_ALLOW_MISSING_DEBUG | \ - CTF_ALLOW_TRUNCATION) + CTF_ALLOW_TRUNCATION | \ + CTF_FORCE_CONVERSION) /* opaque handle for ctfconvert functions */ struct ctf_convert_handle; -- cgit v1.2.3