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