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