libctf: lookup_by_name: do not return success for nonexistent pointer types
[deliverable/binutils-gdb.git] / libctf / ChangeLog
1 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
2
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.
6
7 2021-01-13 Alan Modra <amodra@gmail.com>
8
9 * Makefile.in: Regenerate.
10
11 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR binutils/26792
14 * configure.ac: Use GNU_MAKE_JOBSERVER.
15 * aclocal.m4: Regenerated.
16 * configure: Likewise.
17
18 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
19
20 PR ld/27173
21 * configure: Regenerated.
22
23 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
24
25 * configure: Regenerated.
26
27 2021-01-09 Nick Clifton <nickc@redhat.com>
28
29 * 2.36 release branch crated.
30
31 2021-01-09 Alan Modra <amodra@gmail.com>
32
33 * configure: Regenerate.
34
35 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
36
37 * configure: Regenerate.
38
39 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
40
41 * testsuite/libctf-lookup/struct-iteration.c (main):
42 ctf_member_count returns an int.
43
44 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
45
46 * Makefile.am (BASEDIR): New.
47 (BFDDIR): Likewise.
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.
57
58 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
59
60 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
61 properly.
62
63 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
64
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
79 searched.
80 * testsuite/libctf-regression/regression.exp: New testsuite for
81 regression tests.
82 * testsuite/libctf-regression/pptrtab*: New test.
83 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
84 writable CTF dicts.
85 * testsuite/libctf-writable/pptrtab*: New test.
86
87 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
88
89 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
90
91 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
92
93 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
94 <ctn_next>: ... here.
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
109 over struct members.
110 * testsuite/libctf-lookup/struct-lookup.c: New test.
111 * testsuite/libctf-lookup/struct-lookup.lk: New test.
112
113 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
114
115 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
116 (ctf_link_write): Call it.
117
118 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
119
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.
123
124 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
125
126 * Makefile.am (EXPECT): New.
127 (RUNTEST): Likewise.
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.
140
141 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
142
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
147 linking statically.
148 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
149 libctf uses libintl.
150 (libctf_la_LIBADD): Reference libbfd.la directly, not via
151 BFD_LIBADD.
152 (libctf_la_DEPENDENCIES): Remove.
153 * Makefile.in: Regenerate.
154 * configure: Likewise.
155
156 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
157
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.
161 (CTF_FT_REFS): New.
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.
178
179 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
180
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
189 forwards.
190 (ctf_dump_member): Do not try to print their alignment.
191
192 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
193
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
197 pointers, etc.
198
199 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
200
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
209 indentation.
210
211 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
212
213 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
214
215 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
216
217 PR 27117
218 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
219 ACLOCAL_AMFLAGS -I dirs.
220 * configure: Regenerate.
221
222 2021-01-01 Alan Modra <amodra@gmail.com>
223
224 Update year range in copyright notice of all files.
225
226 For older changes see ChangeLog-2020
227 \f
228 Copyright (C) 2021 Free Software Foundation, Inc.
229
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.
233
234 Local Variables:
235 mode: change-log
236 left-margin: 8
237 fill-column: 74
238 version-control: never
239 End:
This page took 0.034754 seconds and 5 git commands to generate.