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