1 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
3 * ctf-open.c (init_types): Rip out code to check anonymous typedef
5 * ctf-create.c (ctf_add_reftype): Likewise.
6 * ctf-lookup.c (refresh_pptrtab): Likewise.
8 2021-01-27 Nick Alcock <nick.alcock@oracle.com>
10 * ctf-impl.c (_libctf_nonnull_): Add parameters.
11 (LCTF_LINKING): New flag.
12 (ctf_dict_t) <ctf_link_flags>: Mention it.
13 * ctf-link.c (ctf_link): Keep LCTF_LINKING set across call.
14 (ctf_write): Likewise, including in child dictionaries.
15 (ctf_link_shuffle_syms): Make sure ctf_dynsyms is NULL if there
16 are no reported symbols.
17 * ctf-create.c (symtypetab_delete_nonstatic_vars): Make sure
18 the variable has been reported as a symbol by the linker.
19 (symtypetab_skippable): Mention relationship between SYMFP and the
21 (symtypetab_density): Adjust nonnullity. Exit early if no symbols
22 were reported and force-indexing is off (i.e., we are doing a
24 (ctf_serialize): Handle the !LCTF_LINKING case by writing out an
25 indexed, sorted symtypetab (and allow SYMFP to be NULL in this
26 case). Turn sorting off if this is a non-final link. Only delete
27 nonstatic vars if we are filtering symbols and the linker has
29 * testsuite/libctf-regression/nonstatic-var-section-ld-r*:
30 New test of variable and symtypetab section population when
32 * testsuite/libctf-regression/nonstatic-var-section-ld-executable.lk:
33 Likewise, when ld of an executable is used.
34 * testsuite/libctf-regression/nonstatic-var-section-ld.lk:
35 Likewise, when ld -shared alone is used.
36 * testsuite/libctf-regression/nonstatic-var-section-ld*.c:
37 Lookup programs for the above.
38 * testsuite/libctf-writable/symtypetab-nonlinker-writeout.*: New
39 test, testing survival of symbols across ctf_write paths.
40 * testsuite/lib/ctf-lib.exp (run_lookup_test): New option,
41 nonshared, suppressing linking of the SOURCE with -shared.
43 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
45 * ctf-create.c (membadd): Transform ""-named members into
47 * testsuite/libctf-regression/type-add-unnamed-struct*: New test.
49 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
51 * ctf-lookup.c (ctf_lookup_by_name_internal): Do not return the
52 base type if looking up a nonexistent pointer type.
53 * testsuite/libctf-regression/pptrtab*: Test it.
55 2021-01-13 Alan Modra <amodra@gmail.com>
57 * Makefile.in: Regenerate.
59 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
62 * configure.ac: Use GNU_MAKE_JOBSERVER.
63 * aclocal.m4: Regenerated.
64 * configure: Likewise.
66 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
69 * configure: Regenerated.
71 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
73 * configure: Regenerated.
75 2021-01-09 Nick Clifton <nickc@redhat.com>
77 * 2.36 release branch crated.
79 2021-01-09 Alan Modra <amodra@gmail.com>
81 * configure: Regenerate.
83 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
85 * configure: Regenerate.
87 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
89 * testsuite/libctf-lookup/struct-iteration.c (main):
90 ctf_member_count returns an int.
92 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
94 * Makefile.am (BASEDIR): New.
96 (check-DEJAGNU): Add development.exp to prerequisites.
97 (development.exp): New.
98 (CONFIG_STATUS_DEPENDENCIES): New.
99 (EXTRA_DEJAGNU_SITE_CONFIG): Likewise.
100 (DISTCLEANFILES): Likewise.
101 * Makefile.in: Regenerated.
102 * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean.
103 * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available.
104 * testsuite/libctf-regression/regression.exp: Likewise.
106 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
108 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
111 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
113 * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New.
114 <ctf_pptrtab_len>: New.
115 <ctf_pptrtab_typemax>: New.
116 * ctf-create.c (ctf_serialize): Update accordingly.
117 (ctf_add_reftype): Note that we don't need to update pptrtab here,
118 despite updating ptrtab.
119 * ctf-open.c (ctf_dict_close): Destroy the pptrtab.
120 (ctf_import): Likewise.
121 (ctf_import_unref): Likewise.
122 * ctf-lookup.c (grow_pptrtab): New.
123 (refresh_pptrtab): New, update a pptrtab.
124 (ctf_lookup_by_name): Turn into a wrapper around (and rename to)...
125 (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and
126 use it in addition to the parent's ptrtab when parent dicts are
128 * testsuite/libctf-regression/regression.exp: New testsuite for
130 * testsuite/libctf-regression/pptrtab*: New test.
131 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
133 * testsuite/libctf-writable/pptrtab*: New test.
135 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
137 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
139 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
141 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
142 <ctn_next>: ... here.
143 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
144 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
145 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
146 (ctf_member_next): ... this. Support recursive unnamed member
147 iteration (off by default).
148 (ctf_member_info): Look up members in unnamed sub-structs.
149 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
150 (ctf_dedup_emit_struct_members): Likewise.
151 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
152 members, and a normal member after the end.
153 * testsuite/libctf-lookup/struct-iteration.c: Verify that
154 ctf_member_count is consistent with the number of successful returns
155 from a non-recursive ctf_member_next.
156 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
158 * testsuite/libctf-lookup/struct-lookup.c: New test.
159 * testsuite/libctf-lookup/struct-lookup.lk: New test.
161 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
163 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
164 (ctf_link_write): Call it.
166 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
168 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
169 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
170 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
172 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
174 * Makefile.am (EXPECT): New.
176 (RUNTESTFLAGS): Likewise.
177 (CC_FOR_TARGET): Likewise.
178 (check-DEJAGNU): Likewise.
179 (AUTOMAKE_OPTIONS): Add dejagnu.
180 * Makefile.in: Regenerated.
181 * testsuite/config/default.exp: New.
182 * testsuite/lib/ctf-lib.exp: Likewise.
183 * testsuite/libctf-lookup/enum.lk: New test.
184 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
185 * testsuite/libctf-lookup/enum.c: New lookup test.
186 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
187 * testsuite/libctf-lookup/lookup.exp: New.
189 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
191 * configure.ac (BFD_LIBADD): Remove.
192 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
193 (SHARED_LIBADD): Rename to...
194 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
196 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
198 (libctf_la_LIBADD): Reference libbfd.la directly, not via
200 (libctf_la_DEPENDENCIES): Remove.
201 * Makefile.in: Regenerate.
202 * configure: Likewise.
204 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
206 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
207 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
208 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
210 (CTF_FT_BITFIELD): Likewise.
211 (CTF_FT_ID): Likewise.
212 (ctf_dump_member): Do not do indentation here. Migrate the
213 type-printing parts of this into...
214 (ctf_dump_format_type): ... here, to be shared by all type printers.
215 Get the errno value for non-representable types right. Do not print
216 bitfield info for non-bitfields. Improve the format and indentation
217 of other type output. Shuffle spacing around to make all indentation
218 either 'width of column' or 4 chars.
219 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
220 (ctf_dump_objts): Likewise. Spacing shuffle.
221 (ctf_dump_var): Likewise.
222 (type_hex_digits): Migrate down in the file, to above its new user.
223 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
224 ctf_dump_format_type. Don't trim off excess linefeeds now we no
225 longer generate them. Dump enumerated types.
227 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
229 * ctf-types.c (ctf_type_resolve): Improve comment.
230 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
231 Emit errors into the right dict.
232 (ctf_type_align): Likewise.
233 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
234 when adding a member without explicit offset when this member, or
235 the previous member, is incomplete.
236 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
238 (ctf_dump_member): Do not try to print their alignment.
240 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
242 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
243 (ctf_dump_format_type): Don't emit the size for function objects.
244 Dump the element type of arrays like we dump the pointed-to type of
247 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
249 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
250 (ctf_dump_header): Add 0x to the hex magic number.
251 (ctf_dump_str): Add 0x to the hex string offsets.
252 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
253 (ctf_dump_type): Adjust. Free it when we're done.
254 (type_hex_digits): New.
255 (ctf_dump_member): Align output depending on the width of the type
256 ID being generated. Use printf padding, not a loop, to generate
259 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
261 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
263 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
266 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
267 ACLOCAL_AMFLAGS -I dirs.
268 * configure: Regenerate.
270 2021-01-01 Alan Modra <amodra@gmail.com>
272 Update year range in copyright notice of all files.
274 For older changes see ChangeLog-2020
276 Copyright (C) 2021 Free Software Foundation, Inc.
278 Copying and distribution of this file, with or without modification,
279 are permitted in any medium without royalty provided the copyright
280 notice and this notice are preserved.
286 version-control: never