Add Changelog entries and NEWS entries for 2.36 branch
[deliverable/binutils-gdb.git] / libctf / ChangeLog
1 2021-01-09 Nick Clifton <nickc@redhat.com>
2
3 * 2.36 release branch crated.
4
5 2021-01-09 Alan Modra <amodra@gmail.com>
6
7 * configure: Regenerate.
8
9 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
10
11 * configure: Regenerate.
12
13 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
14
15 * testsuite/libctf-lookup/struct-iteration.c (main):
16 ctf_member_count returns an int.
17
18 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
19
20 * Makefile.am (BASEDIR): New.
21 (BFDDIR): Likewise.
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.
31
32 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
33
34 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
35 properly.
36
37 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
38
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
53 searched.
54 * testsuite/libctf-regression/regression.exp: New testsuite for
55 regression tests.
56 * testsuite/libctf-regression/pptrtab*: New test.
57 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
58 writable CTF dicts.
59 * testsuite/libctf-writable/pptrtab*: New test.
60
61 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
62
63 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
64
65 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
66
67 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
68 <ctn_next>: ... here.
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
83 over struct members.
84 * testsuite/libctf-lookup/struct-lookup.c: New test.
85 * testsuite/libctf-lookup/struct-lookup.lk: New test.
86
87 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
88
89 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
90 (ctf_link_write): Call it.
91
92 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
93
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.
97
98 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
99
100 * Makefile.am (EXPECT): New.
101 (RUNTEST): Likewise.
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.
114
115 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
116
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
121 linking statically.
122 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
123 libctf uses libintl.
124 (libctf_la_LIBADD): Reference libbfd.la directly, not via
125 BFD_LIBADD.
126 (libctf_la_DEPENDENCIES): Remove.
127 * Makefile.in: Regenerate.
128 * configure: Likewise.
129
130 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
131
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.
135 (CTF_FT_REFS): New.
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.
152
153 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
154
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
163 forwards.
164 (ctf_dump_member): Do not try to print their alignment.
165
166 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
167
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
171 pointers, etc.
172
173 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
174
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
183 indentation.
184
185 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
186
187 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
188
189 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
190
191 PR 27117
192 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
193 ACLOCAL_AMFLAGS -I dirs.
194 * configure: Regenerate.
195
196 2021-01-01 Alan Modra <amodra@gmail.com>
197
198 Update year range in copyright notice of all files.
199
200 For older changes see ChangeLog-2020
201 \f
202 Copyright (C) 2021 Free Software Foundation, Inc.
203
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.
207
208 Local Variables:
209 mode: change-log
210 left-margin: 8
211 fill-column: 74
212 version-control: never
213 End:
This page took 0.035423 seconds and 5 git commands to generate.