diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2020-11-25 15:40:47 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2020-12-17 21:18:28 +0000 |
commit | 73197b540cc5f0434c409b68ca9e1a514a6ce91b (patch) | |
tree | 77c0340598f2af7e9feab3a729acbe677ca973b9 /usr/src/lib/libctf/common/libctf.h | |
parent | dd4422524768709a579a2a93a10c78a88a6b0ecb (diff) | |
download | illumos-gate-73197b540cc5f0434c409b68ca9e1a514a6ce91b.tar.gz |
13336 ctfconvert should be able to unconditionally attempt conversion
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Rich Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libctf/common/libctf.h')
-rw-r--r-- | usr/src/lib/libctf/common/libctf.h | 11 |
1 files changed, 9 insertions, 2 deletions
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; |