binutils-gdb/libctf
Nick Alcock e05a3e5a49 libctf: lookup_by_name: do not return success for nonexistent pointer types
The recent work allowing lookups of pointers in child dicts when the
pointed-to type is in the parent dict broke the case where a pointer
type that does not exist at all is looked up: we mistakenly return the
pointed-to type, which is likely not a pointer at all.  This causes
considerable confusion.

Fixed, with a new testcase.

libctf/ChangeLog
2021-01-19  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-lookup.c (ctf_lookup_by_name_internal): Do not return the
	base type if looking up a nonexistent pointer type.
	* testsuite/libctf-regression/pptrtab*: Test it.
2021-01-19 12:45:19 +00:00
..
testsuite libctf: lookup_by_name: do not return success for nonexistent pointer types 2021-01-19 12:45:19 +00:00
.gitignore
aclocal.m4 Implement a workaround for GNU mak jobserver 2021-01-12 05:45:44 -08:00
ChangeLog libctf: lookup_by_name: do not return success for nonexistent pointer types 2021-01-19 12:45:19 +00:00
ChangeLog-2020 libctf: fix old ChangeLog typo 2021-01-05 14:53:40 +00:00
config.h.in
configure Implement a workaround for GNU mak jobserver 2021-01-12 05:45:44 -08:00
configure.ac Implement a workaround for GNU mak jobserver 2021-01-12 05:45:44 -08:00
ctf-archive.c libctf: remove outdated comment about parent dict importing 2021-01-05 14:53:40 +00:00
ctf-create.c libctf: fix lookups of pointers by name in parent dicts 2021-01-05 14:53:40 +00:00
ctf-decl.c libctf, ld: dump enums: generally improve dump formatting 2021-01-05 14:53:39 +00:00
ctf-decls.h
ctf-dedup.c libctf, include: support unnamed structure members better 2021-01-05 14:53:40 +00:00
ctf-dump.c libctf, ld: dump enums: generally improve dump formatting 2021-01-05 14:53:39 +00:00
ctf-endian.h
ctf-error.c
ctf-hash.c
ctf-impl.h libctf: fix lookups of pointers by name in parent dicts 2021-01-05 14:53:40 +00:00
ctf-inlines.h
ctf-intl.h
ctf-labels.c
ctf-link.c libctf: warn about information loss because of unreleased format changes 2021-01-05 14:53:40 +00:00
ctf-lookup.c libctf: lookup_by_name: do not return success for nonexistent pointer types 2021-01-19 12:45:19 +00:00
ctf-open-bfd.c
ctf-open.c libctf: fix lookups of pointers by name in parent dicts 2021-01-05 14:53:40 +00:00
ctf-qsort_r.c
ctf-sha1.c
ctf-sha1.h
ctf-string.c
ctf-subr.c
ctf-types.c libctf, ld: fix formatting of forwards to unions and enums 2021-01-05 14:53:40 +00:00
ctf-util.c libctf, include: support unnamed structure members better 2021-01-05 14:53:40 +00:00
elf.h
libctf.ver
Makefile.am libctf, testsuite: don't run without a suitable compiler 2021-01-05 17:11:20 +00:00
Makefile.in Regen Makefile.in for jobserver.m4 aclocal.m4 dependency 2021-01-13 22:06:02 +10:30
swap.h