binutils-gdb/libctf
Nick Alcock fa4fe27537
libctf: fix cv-qualified unnamed struct/union field lookup
GCC permits not only unnamed structs and unions, but cv-qualified ones.
Our earlier fix in 6c3a38777b supported
unnamed structs and unions, but only unqualified ones.

Resolving away cvr-quals of nameless fields (and, irrelevantly, typedefs)
is easy and fixes this problem.

Tests adjusted accordingly.

libctf/
	PR libctf/32746
	* ctf-types.c (ctf_member_next): Resolve away cv-quals.
	(ctf_member_info): Likewise.
	* testsuite/libctf-lookup/struct-iteration-ctf.c: Add a cv-qualified
	type or two: make sure to keep a non-qualified one.
	* testsuite/libctf-lookup/struct-iteration.c: Verify consistency
	of ctf_member_next and ctf_member_info.
	* testsuite/libctf-lookup/struct-iteration.lk: Adjust.

Tested-by: Stephen Brennan <stephen.s.brennan@oracle.com>
2025-02-28 14:16:42 +00:00
..
doc [libctf] Fix warning: @xref should not appear on @multitable line 2025-02-25 08:29:19 +01:00
testsuite libctf: fix cv-qualified unnamed struct/union field lookup 2025-02-28 14:16:42 +00:00
.gitignore libctf: restructure error handling to reduce relocations 2020-07-22 17:57:20 +01:00
aclocal.m4 mmap: Avoid the sanitizer configure check failure 2024-04-10 03:57:46 -07:00
ChangeLog Add markers for bihnutils 2.44 branch 2025-01-19 12:09:01 +00:00
ChangeLog-2020 libctf: fix old ChangeLog typo 2021-01-05 14:53:40 +00:00
config.h.in libctf: suppress spurious failure of malloc-counting tests under valgrind 2024-06-18 13:20:32 +01:00
configure Revert "Remove LIBINTL_DEP" 2024-06-20 21:15:27 +09:30
configure.ac Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-archive.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-create.c libctf: fix slices of slices and of enums 2025-02-28 14:16:38 +00:00
ctf-decl.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-decls.h Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-dedup.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-dump.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-endian.h Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-error.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-hash.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-impl.h Remove unnecessary non-standard & unportable inclusions. 2025-02-28 13:24:50 +00:00
ctf-inlines.h Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-intl.h Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-labels.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-link.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-lookup.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-open-bfd.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-open.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-qsort_r.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-serialize.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-sha1.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-sha1.h Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-string.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-subr.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
ctf-types.c libctf: fix cv-qualified unnamed struct/union field lookup 2025-02-28 14:16:42 +00:00
ctf-util.c Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
elf.h Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
libctf.ver Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
Makefile.am Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
Makefile.in Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30
NEWS include, libctf, ld: extend variable section to contain functions too 2022-03-23 13:48:32 +00:00
swap.h Update year range in copyright notice of binutils files 2025-01-01 18:29:57 +10:30