Binutils: Check if AR works with --plugin and rc
[deliverable/binutils-gdb.git] / libctf / ChangeLog
1 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/27173
4 * configure: Regenerated.
5
6 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
7
8 * configure: Regenerated.
9
10 2021-01-09 Nick Clifton <nickc@redhat.com>
11
12 * 2.36 release branch crated.
13
14 2021-01-09 Alan Modra <amodra@gmail.com>
15
16 * configure: Regenerate.
17
18 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
19
20 * configure: Regenerate.
21
22 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
23
24 * testsuite/libctf-lookup/struct-iteration.c (main):
25 ctf_member_count returns an int.
26
27 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
28
29 * Makefile.am (BASEDIR): New.
30 (BFDDIR): Likewise.
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.
40
41 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
42
43 * ctf-types.c (ctf_type_aname): Print forwards to unions and enums
44 properly.
45
46 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
47
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
62 searched.
63 * testsuite/libctf-regression/regression.exp: New testsuite for
64 regression tests.
65 * testsuite/libctf-regression/pptrtab*: New test.
66 * testsuite/libctf-writable/writable.exp: New testsuite for tests of
67 writable CTF dicts.
68 * testsuite/libctf-writable/pptrtab*: New test.
69
70 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
71
72 * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
73
74 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
75
76 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
77 <ctn_next>: ... here.
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
92 over struct members.
93 * testsuite/libctf-lookup/struct-lookup.c: New test.
94 * testsuite/libctf-lookup/struct-lookup.lk: New test.
95
96 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
97
98 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
99 (ctf_link_write): Call it.
100
101 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
102
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.
106
107 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
108
109 * Makefile.am (EXPECT): New.
110 (RUNTEST): Likewise.
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.
123
124 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
125
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
130 linking statically.
131 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
132 libctf uses libintl.
133 (libctf_la_LIBADD): Reference libbfd.la directly, not via
134 BFD_LIBADD.
135 (libctf_la_DEPENDENCIES): Remove.
136 * Makefile.in: Regenerate.
137 * configure: Likewise.
138
139 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
140
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.
144 (CTF_FT_REFS): New.
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.
161
162 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
163
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
172 forwards.
173 (ctf_dump_member): Do not try to print their alignment.
174
175 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
176
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
180 pointers, etc.
181
182 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
183
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
192 indentation.
193
194 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
195
196 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
197
198 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
199
200 PR 27117
201 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
202 ACLOCAL_AMFLAGS -I dirs.
203 * configure: Regenerate.
204
205 2021-01-01 Alan Modra <amodra@gmail.com>
206
207 Update year range in copyright notice of all files.
208
209 For older changes see ChangeLog-2020
210 \f
211 Copyright (C) 2021 Free Software Foundation, Inc.
212
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.
216
217 Local Variables:
218 mode: change-log
219 left-margin: 8
220 fill-column: 74
221 version-control: never
222 End:
This page took 0.035228 seconds and 5 git commands to generate.