binutils-gdb/libctf
Nick Alcock 12a0b67d28 libctf: introduce ctf_func_type_{info,args}, ctf_type_aname_raw
The first two of these allow you to get function type info and args out
of the types section give a type ID: astonishingly, this was missing
from libctf before now: so even though types of kind CTF_K_FUNCTION were
supported, you couldn't find out anything about them.  (The existing
ctf_func_info and ctf_func_args only allow you to get info about
functions in the function section, i.e. given symbol table indexes, not
type IDs.)

The second of these allows you to get the raw undecorated name out of
the CTF section (strdupped for safety) without traversing subtypes to
build a full C identifier out of it.  It's useful for things that are
already tracking the type kind etc and just need an unadorned name.

include/
	* ctf-api.h (ECTF_NOTFUNC): Fix description.
	(ctf_func_type_info): New.
	(ctf_func_type_args): Likewise.
libctf/
	* ctf-types.c (ctf_type_aname_raw): New.
	(ctf_func_type_info): Likewise.
	(ctf_func_type_args): Likewise.
	* ctf-error.c (_ctf_errlist): Fix description.
2019-07-18 20:53:57 +01:00
..
aclocal.m4
ChangeLog libctf: introduce ctf_func_type_{info,args}, ctf_type_aname_raw 2019-07-18 20:53:57 +01:00
config.h.in
configure Regenerate with approved autotools version 2019-06-14 10:30:35 +09:30
configure.ac
ctf-archive.c
ctf-create.c libctf: fix spurious error when rolling back to the first snapshot 2019-07-01 11:05:59 +01:00
ctf-decl.c
ctf-decls.h libctf: avoid strndup 2019-06-07 13:46:39 +01:00
ctf-dump.c libctf: disambiguate hex output in dumps 2019-07-01 11:05:59 +01:00
ctf-endian.h
ctf-error.c libctf: introduce ctf_func_type_{info,args}, ctf_type_aname_raw 2019-07-18 20:53:57 +01:00
ctf-hash.c libctf: add hash traversal helpers 2019-07-01 11:05:59 +01:00
ctf-impl.h libctf: deduplicate and sort the string table 2019-07-01 11:05:59 +01:00
ctf-labels.c
ctf-lookup.c libctf: introduce ctf_func_type_{info,args}, ctf_type_aname_raw 2019-07-18 20:53:57 +01:00
ctf-open-bfd.c libctf: fix ctf_open endianness problems with raw CTF files 2019-06-21 13:04:02 +01:00
ctf-open.c libctf: deduplicate and sort the string table 2019-07-01 11:05:59 +01:00
ctf-qsort_r.c
ctf-string.c libctf: deduplicate and sort the string table 2019-07-01 11:05:59 +01:00
ctf-subr.c libctf: drop mmap()-based CTF data allocator 2019-06-21 13:04:02 +01:00
ctf-types.c libctf: introduce ctf_func_type_{info,args}, ctf_type_aname_raw 2019-07-18 20:53:57 +01:00
ctf-util.c libctf: deduplicate and sort the string table 2019-07-01 11:05:59 +01:00
elf.h
Makefile.am libctf: deduplicate and sort the string table 2019-07-01 11:05:59 +01:00
Makefile.in libctf: deduplicate and sort the string table 2019-07-01 11:05:59 +01:00
swap.h