gcc/include
Indu Bhagat b7e215a8ee CTF/BTF debug formats
This commit introduces support for generating CTF debugging
information and BTF debugging information from GCC.

2021-06-28  Indu Bhagat  <indu.bhagat@oracle.com>
	    David Faust  <david.faust@oracle.com>
	    Jose E. Marchesi  <jose.marchesi@oracle.com>
	    Weimin Pan  <weimin.pan@oracle.com>

gcc/

	* Makefile.in: Add ctfc.*, ctfout.c and btfout.c files to
	GTFILES.  Add new object files.
	* common.opt: Add CTF and BTF debug info options.
	* btfout.c: New file.
	* ctfc.c: Likewise.
	* ctfc.h: Likewise.
	* ctfout.c: Likewise.
	* dwarf2ctf.c: Likewise.
	* dwarf2ctf.h: Likewise.
	* dwarf2cfi.c (dwarf2out_do_frame): Acknowledge CTF_DEBUG and
	BTF_DEBUG.
	* dwarf2out.c (dwarf2out_source_line): Likewise.
	(dwarf2out_finish): Skip emitting DWARF if CTF or BTF are to
	be generated.
	(debug_format_do_cu): New function.
	(dwarf2out_early_finish): Traverse DIEs and emit CTF/BTF for
	them if	requested.
	Include dwarf2ctf.c.
	* final.c (dwarf2_debug_info_emitted_p): Acknowledge DWARF-based debug
	formats.
	* flag-types.h (enum debug_info_type): Add CTF_DEBUG and BTF_DEBUG.
	(CTF_DEBUG): New bitmask.
	(BTF_DEBUG): Likewise.
	(enum ctf_debug_info_levels): New enum.
	* gengtype.c (open_base_files): Handle ctfc.h.
	(main): Handle uint32_t type.
	* flags.h (btf_debuginfo_p): New definition.
	(dwarf_based_debuginfo_p): Likewise.
	* opts.c (debug_type_names): Add entries for CTF and BTF.
	(btf_debuginfo_p): New function.
	(dwarf_based_debuginfo_p): Likewise.
	(common_handle_option): Handle -gctfN and -gbtf options.
	(set_debug_level): Set CTF_DEBUG, BTF_DEBUG whenever appropriate.
	* toplev.c (process_options): Inform the user and ignore -gctfLEVEL if
	frontend is not C.

include/

	* ctf.h: New file.
	* btf.h: Likewise.

libiberty/

	* simple-object.c (handle_lto_debug_sections): Copy over .ctf
	sections.
2021-06-28 18:47:20 +02:00
..
gdb Update copyright years. 2021-01-04 10:26:59 +01:00
COPYING Update the address and phone number of the FSF organization. 2005-05-10 15:22:21 +00:00
COPYING3 COPYING_v3: New file. 2007-07-17 08:37:53 +00:00
ChangeLog Daily bump. 2021-05-07 00:16:33 +00:00
ChangeLog-9103 Convert ChangeLog files to UTF-8. 2008-09-05 13:07:45 +02:00
ChangeLog.jit Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
ansidecl.h Update copyright years. 2021-01-04 10:26:59 +01:00
btf.h CTF/BTF debug formats 2021-06-28 18:47:20 +02:00
ctf.h CTF/BTF debug formats 2021-06-28 18:47:20 +02:00
demangle.h c++: Adjust mangling of __alignof__ [PR88115] 2021-03-30 22:57:11 -04:00
dwarf2.def Update copyright years. 2021-01-04 10:26:59 +01:00
dwarf2.h Update copyright years. 2021-01-04 10:26:59 +01:00
dyn-string.h Update copyright years. 2021-01-04 10:26:59 +01:00
environ.h Update copyright years. 2021-01-04 10:26:59 +01:00
fibheap.h Update copyright years. 2021-01-04 10:26:59 +01:00
filenames.h Update copyright years. 2021-01-04 10:26:59 +01:00
floatformat.h Update copyright years. 2021-01-04 10:26:59 +01:00
fnmatch.h Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-c-fe.def Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-c-interface.h Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-cp-fe.def Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-cp-interface.h Update copyright years. 2021-01-04 10:26:59 +01:00
gcc-interface.h Update copyright years. 2021-01-04 10:26:59 +01:00
getopt.h Update copyright years. 2021-01-04 10:26:59 +01:00
gomp-constants.h openmp: Add support for the OpenMP 5.0 task detach clause 2021-01-16 12:58:13 -08:00
hashtab.h libiberty: add htab_eq_string 2021-05-06 08:51:28 -06:00
hsa.h Import HSA header files from AMD 2020-12-09 11:10:40 +00:00
hsa_ext_amd.h Import HSA header files from AMD 2020-12-09 11:10:40 +00:00
hsa_ext_image.h Import HSA header files from AMD 2020-12-09 11:10:40 +00:00
leb128.h Update copyright years. 2021-01-04 10:26:59 +01:00
libiberty.h Update copyright years. 2021-01-04 10:26:59 +01:00
longlong.h Update copyright years. 2021-01-04 10:26:59 +01:00
lto-symtab.h Update copyright years. 2021-01-04 10:26:59 +01:00
md5.h Update copyright years. 2021-01-04 10:26:59 +01:00
objalloc.h Update copyright years. 2021-01-04 10:26:59 +01:00
obstack.h Update copyright years. 2021-01-04 10:26:59 +01:00
partition.h Update copyright years. 2021-01-04 10:26:59 +01:00
plugin-api.h Update copyright years. 2021-01-04 10:26:59 +01:00
safe-ctype.h Update copyright years. 2021-01-04 10:26:59 +01:00
sha1.h Update copyright years. 2021-01-04 10:26:59 +01:00
simple-object.h Update copyright years. 2021-01-04 10:26:59 +01:00
sort.h Update copyright years. 2021-01-04 10:26:59 +01:00
splay-tree.h Update copyright years. 2021-01-04 10:26:59 +01:00
symcat.h Update copyright years. 2021-01-04 10:26:59 +01:00
timeval-utils.h Update copyright years. 2021-01-04 10:26:59 +01:00
unique-ptr.h Update copyright years. 2021-01-04 10:26:59 +01:00
vtv-change-permission.h Update copyright years. 2021-01-04 10:26:59 +01:00
xregex.h system.h [...]: Wrap C function declarations in extern "C". 2011-07-25 14:24:59 +00:00
xregex2.h Update copyright years. 2021-01-04 10:26:59 +01:00
xtensa-config.h Update copyright years. 2021-01-04 10:26:59 +01:00