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