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