diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2021-10-25 11:17:02 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2021-10-25 11:17:05 +0100 |
commit | eb5323fdf88aff59afca0a545877c4d777ff2726 (patch) | |
tree | bacc4ebe4f83df36805d5a30ec1f890be3e89295 /libctf/ChangeLog | |
parent | a0cc569d599f92c3a9168fcd23a0b18f7ff42f1d (diff) | |
download | fsf-binutils-gdb-eb5323fdf88aff59afca0a545877c4d777ff2726.zip fsf-binutils-gdb-eb5323fdf88aff59afca0a545877c4d777ff2726.tar.gz fsf-binutils-gdb-eb5323fdf88aff59afca0a545877c4d777ff2726.tar.bz2 |
libctf, ld: handle nonrepresentable types better
ctf_type_visit (used, among other things, by the type dumping code) was
aborting when it saw a nonrepresentable type anywhere: even a single
structure member with a nonrepresentable type caused an abort with
ECTF_NONREPRESENTABLE. This is not useful behaviour, given that the
abort comes from a type-resolution we are only doing in order to
determine whether the type is a structure or union. We know
nonrepresentable types can't be either, so handle that case and
pass the nonrepresentable type down.
(The added test verifies that the dumper now handles this case and
prints nonrepresentable structure members as it already does
nonrepresentable top-level types, rather than skipping the whole
structure -- or, without the previous commit, skipping the whole types
section.)
ld/ChangeLog
2021-10-25 Nick Alcock <nick.alcock@oracle.com>
* testsuite/ld-ctf/nonrepresentable-member.*: New test.
libctf/ChangeLog
2021-10-25 Nick Alcock <nick.alcock@oracle.com>
* ctf-types.c (ctf_type_rvisit): Handle nonrepresentable types.
Diffstat (limited to 'libctf/ChangeLog')
-rw-r--r-- | libctf/ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 879e128..245987f 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,5 +1,9 @@ 2021-10-25 Nick Alcock <nick.alcock@oracle.com> + * ctf-types.c (ctf_type_rvisit): Handle nonrepresentable types. + +2021-10-25 Nick Alcock <nick.alcock@oracle.com> + * ctf-dump.c (ctf_dump_type): Do not abort on error. 2021-09-27 Nick Alcock <nick.alcock@oracle.com> |