binutils-gdb/libctf
Nick Alcock ae41200ba8 libctf, include, binutils, gdb: rename CTF-opening functions
The functions that return ctf_dict_t's given a ctf_archive_t and a name
are very clumsily named.  It sounds like they return *archives*, not
dictionaries, and the names are very long and clunky.  Why do we
have a ctf_arc_open_by_name when it opens a dictionary, not an archive,
and when there is no way to open a dictionary in any other way?  The
answer is purely internal: the function is located in ctf-archive.c,
and everything in there was called ctf_arc_*, and there is another
way to open a dict (by offset in the archive), that is internal to
ctf-archive.c and that nothing else can call.

This is clearly bad naming. The internal organization of the source tree
should not dictate public API names!

So rename things (keeping the old, bad names for compatibility), and
adjust all users.  You now open a dict using ctf_dict_open, and
open it giving ELF sections via ctf_dict_open_sections.

binutils/ChangeLog
2020-11-20  Nick Alcock  <nick.alcock@oracle.com>

	* objdump.c (dump_ctf): Use ctf_dict_open, not
	ctf_arc_open_by_name.
	* readelf.c (dump_section_as_ctf): Likewise.

gdb/ChangeLog
2020-11-20  Nick Alcock  <nick.alcock@oracle.com>

	* ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
	ctf_arc_open_by_name.

include/ChangeLog
2020-11-20  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-api.h (ctf_arc_open_by_name): Rename to...
	(ctf_dict_open): ... this, keeping compatibility function.
	(ctf_arc_open_by_name_sections): Rename to...
	(ctf_dict_open_sections): ... this, keeping compatibility function.

libctf/ChangeLog
2020-11-20  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-archive.c (ctf_arc_open_by_offset): Rename to...
	(ctf_dict_open_by_offset): ... this.  Adjust callers.
	(ctf_arc_open_by_name_internal): Rename to...
	(ctf_dict_open_internal): ... this.  Adjust callers.
	(ctf_arc_open_by_name_sections): Rename to...
	(ctf_dict_open_sections): ... this, keeping compatibility function.
	(ctf_arc_open_by_name): Rename to...
	(ctf_dict_open): ... this, keeping compatibility function.
	* libctf.ver: New functions added.
	* ctf-link.c (ctf_link_one_input_archive): Adjusted accordingly.
	(ctf_link_deduplicating_open_inputs): Likewise.
2020-11-20 13:34:05 +00:00
..
.gitignore
aclocal.m4
ChangeLog libctf, include, binutils, gdb: rename CTF-opening functions 2020-11-20 13:34:05 +00:00
config.h.in
configure
configure.ac
ctf-archive.c libctf, include, binutils, gdb: rename CTF-opening functions 2020-11-20 13:34:05 +00:00
ctf-create.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-decl.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-decls.h
ctf-dedup.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-dump.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-endian.h
ctf-error.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-hash.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-impl.h libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-inlines.h libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-intl.h
ctf-labels.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-link.c libctf, include, binutils, gdb: rename CTF-opening functions 2020-11-20 13:34:05 +00:00
ctf-lookup.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-open-bfd.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-open.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-qsort_r.c
ctf-sha1.c
ctf-sha1.h
ctf-string.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-subr.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-types.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
ctf-util.c libctf, include, binutils, gdb, ld: rename ctf_file_t to ctf_dict_t 2020-11-20 13:34:04 +00:00
elf.h
libctf.ver libctf, include, binutils, gdb: rename CTF-opening functions 2020-11-20 13:34:05 +00:00
Makefile.am
Makefile.in
swap.h