1 2021-01-09 Nick Clifton <nickc@redhat.com>
3 * 2.36 release branch crated.
5 2021-01-09 Alan Modra <amodra@gmail.com>
7 * configure: Regenerate.
9 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
11 * configure: Regenerate.
13 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
15 * testsuite/libctf-lookup/struct-iteration.c (main):
16 ctf_member_count returns an int.
18 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
20 * Makefile.am (BASEDIR): New.
22 (check-DEJAGNU): Add development.exp to prerequisites.
23 (development.exp): New.
24 (CONFIG_STATUS_DEPENDENCIES): New.
25 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
26 (DISTCLEANFILES): Likewise.
27 * Makefile.in: Regenerated.
28 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
29 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
30 * testsuite/libctf-regression/regression.exp: Likewise.
32 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
34 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
37 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
39 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
40 <ctf_pptrtab_len>: New.
41 <ctf_pptrtab_typemax>: New.
42 * ctf-create.c (ctf_serialize): Update accordingly.
43 (ctf_add_reftype): Note that we don't need to update pptrtab here,
44 despite updating ptrtab.
45 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
46 (ctf_import): Likewise.
47 (ctf_import_unref): Likewise.
48 * ctf-lookup.c (grow_pptrtab): New.
49 (refresh_pptrtab): New, update a pptrtab.
50 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
51 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
52 use it in addition to the parent's ptrtab when parent dicts are
54 * testsuite/libctf-regression/regression.exp: New testsuite for
56 * testsuite/libctf-regression/pptrtab*: New test.
57 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
59 * testsuite/libctf-writable/pptrtab*: New test.
61 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
63 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
65 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
67 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
69 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
70 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
71 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
72 (ctf_member_next): ... this. Support recursive unnamed member
73 iteration (off by default).
74 (ctf_member_info): Look up members in unnamed sub-structs.
75 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
76 (ctf_dedup_emit_struct_members): Likewise.
77 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
78 members, and a normal member after the end.
79 * testsuite/libctf-lookup/struct-iteration.c: Verify that
80 ctf_member_count is consistent with the number of successful returns
81 from a non-recursive ctf_member_next.
82 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
84 * testsuite/libctf-lookup/struct-lookup.c: New test.
85 * testsuite/libctf-lookup/struct-lookup.lk: New test.
87 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
89 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
90 (ctf_link_write): Call it.
92 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
94 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
95 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
96 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
98 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
100 * Makefile.am (EXPECT): New.
102 (RUNTESTFLAGS): Likewise.
103 (CC_FOR_TARGET): Likewise.
104 (check-DEJAGNU): Likewise.
105 (AUTOMAKE_OPTIONS): Add dejagnu.
106 * Makefile.in: Regenerated.
107 * testsuite/config/default.exp: New.
108 * testsuite/lib/ctf-lib.exp: Likewise.
109 * testsuite/libctf-lookup/enum.lk: New test.
110 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
111 * testsuite/libctf-lookup/enum.c: New lookup test.
112 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
113 * testsuite/libctf-lookup/lookup.exp: New.
115 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
117 * configure.ac (BFD_LIBADD): Remove.
118 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
119 (SHARED_LIBADD): Rename to...
120 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
122 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
124 (libctf_la_LIBADD): Reference libbfd.la directly, not via
126 (libctf_la_DEPENDENCIES): Remove.
127 * Makefile.in: Regenerate.
128 * configure: Likewise.
130 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
132 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
133 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
134 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
136 (CTF_FT_BITFIELD): Likewise.
137 (CTF_FT_ID): Likewise.
138 (ctf_dump_member): Do not do indentation here. Migrate the
139 type-printing parts of this into...
140 (ctf_dump_format_type): ... here, to be shared by all type printers.
141 Get the errno value for non-representable types right. Do not print
142 bitfield info for non-bitfields. Improve the format and indentation
143 of other type output. Shuffle spacing around to make all indentation
144 either 'width of column' or 4 chars.
145 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
146 (ctf_dump_objts): Likewise. Spacing shuffle.
147 (ctf_dump_var): Likewise.
148 (type_hex_digits): Migrate down in the file, to above its new user.
149 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
150 ctf_dump_format_type. Don't trim off excess linefeeds now we no
151 longer generate them. Dump enumerated types.
153 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
155 * ctf-types.c (ctf_type_resolve): Improve comment.
156 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
157 Emit errors into the right dict.
158 (ctf_type_align): Likewise.
159 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
160 when adding a member without explicit offset when this member, or
161 the previous member, is incomplete.
162 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
164 (ctf_dump_member): Do not try to print their alignment.
166 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
168 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
169 (ctf_dump_format_type): Don't emit the size for function objects.
170 Dump the element type of arrays like we dump the pointed-to type of
173 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
175 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
176 (ctf_dump_header): Add 0x to the hex magic number.
177 (ctf_dump_str): Add 0x to the hex string offsets.
178 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
179 (ctf_dump_type): Adjust. Free it when we're done.
180 (type_hex_digits): New.
181 (ctf_dump_member): Align output depending on the width of the type
182 ID being generated. Use printf padding, not a loop, to generate
185 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
187 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
189 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
192 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
193 ACLOCAL_AMFLAGS -I dirs.
194 * configure: Regenerate.
196 2021-01-01 Alan Modra <amodra@gmail.com>
198 Update year range in copyright notice of all files.
200 For older changes see ChangeLog-2020
202 Copyright (C) 2021 Free Software Foundation, Inc.
204 Copying and distribution of this file, with or without modification,
205 are permitted in any medium without royalty provided the copyright
206 notice and this notice are preserved.
212 version-control: never