libctf: lookup_by_name: do not return success for nonexistent pointer types
[deliverable/binutils-gdb.git] / libctf / ChangeLog
CommitLineData
e05a3e5a
NA
12021-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
5347ed60
AM
72021-01-13 Alan Modra <amodra@gmail.com>
8
9 * Makefile.in: Regenerate.
10
d546b610
L
112021-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
83b33c6c
L
182021-01-11 H.J. Lu <hongjiu.lu@intel.com>
19
20 PR ld/27173
21 * configure: Regenerated.
22
a4966cd9
L
232021-01-09 H.J. Lu <hongjiu.lu@intel.com>
24
25 * configure: Regenerated.
26
055bc77a
NC
272021-01-09 Nick Clifton <nickc@redhat.com>
28
29 * 2.36 release branch crated.
30
64307045
AM
312021-01-09 Alan Modra <amodra@gmail.com>
32
33 * configure: Regenerate.
34
f4782128
ST
352021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
36
37 * configure: Regenerate.
38
0814dbfb
NA
392021-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
70d3120f
NA
442021-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
b4b6ea46
NA
582021-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
abe4ca69
NA
632021-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
8769046e
NA
872021-01-05 Nick Alcock <nick.alcock@oracle.com>
88
89 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
90
6c3a3877
NA
912021-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
abed0b07
NA
1132021-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
9bc76971
NA
1182021-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
c59e30ed
NA
1242021-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
1038406a
NA
1412021-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
37002871
NA
1562021-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
ffeece6a
NA
1792021-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
91e7ce2f
NA
1922021-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
57f97d0e
NA
1992021-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
b09ad6ea
NA
2112021-01-05 Nick Alcock <nick.alcock@oracle.com>
212
213 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
214
a7c23ac9
NB
2152021-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
250d07de
AM
2222021-01-01 Alan Modra <amodra@gmail.com>
223
224 Update year range in copyright notice of all files.
225
c2795844
AM
226For older changes see ChangeLog-2020
227\f
228Copyright (C) 2021 Free Software Foundation, Inc.
60da9d95 229
c2795844
AM
230Copying and distribution of this file, with or without modification,
231are permitted in any medium without royalty provided the copyright
232notice and this notice are preserved.
60da9d95 233
60da9d95
NA
234Local Variables:
235mode: change-log
236left-margin: 8
c2795844 237fill-column: 74
60da9d95
NA
238version-control: never
239End:
This page took 0.115006 seconds and 4 git commands to generate.