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