diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2021-09-07 11:16:53 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2021-09-07 11:16:53 -0700 |
commit | 053db9a49b00d422cd735bee4c0939b7ff07c40e (patch) | |
tree | a8d0e57d81aaf1040a352afe7aa5f6946b6d55f0 /gcc/flags.h | |
parent | c03db573b9e619f9e4f7d7111f99877368c78e26 (diff) | |
download | gcc-053db9a49b00d422cd735bee4c0939b7ff07c40e.zip gcc-053db9a49b00d422cd735bee4c0939b7ff07c40e.tar.gz gcc-053db9a49b00d422cd735bee4c0939b7ff07c40e.tar.bz2 |
debug: Add BTF_WITH_CORE_DEBUG debug format
To best handle BTF/CO-RE in GCC, a distinct BTF_WITH_CORE_DEBUG debug format is
being added. This helps the compiler detect whether BTF with CO-RE relocations
needs to be emitted.
gcc/ChangeLog:
* flag-types.h (enum debug_info_type): Add new enum
DINFO_TYPE_BTF_WITH_CORE.
(BTF_WITH_CORE_DEBUG): New bitmask.
* flags.h (btf_with_core_debuginfo_p): New declaration.
* opts.c (btf_with_core_debuginfo_p): New definition.
Diffstat (limited to 'gcc/flags.h')
-rw-r--r-- | gcc/flags.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/flags.h b/gcc/flags.h index afedef0..af61bcd 100644 --- a/gcc/flags.h +++ b/gcc/flags.h @@ -44,6 +44,10 @@ const char * debug_set_names (uint32_t w_symbols); extern bool btf_debuginfo_p (); +/* Return true iff BTF with CO-RE debug info is enabled. */ + +extern bool btf_with_core_debuginfo_p (); + /* Return true iff CTF debug info is enabled. */ extern bool ctf_debuginfo_p (); |