libctf, include: support unnamed structure members better
[deliverable/binutils-gdb.git] / libctf / ChangeLog
CommitLineData
6c3a3877
NA
12021-01-05 Nick Alcock <nick.alcock@oracle.com>
2
3 * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
4 <ctn_next>: ... here.
5 * ctf-util.c (ctf_next_destroy): Unconditionally destroy it.
6 * ctf-lookup.c (ctf_symbol_next): Adjust accordingly.
7 * ctf-types.c (ctf_member_iter): Reimplement in terms of...
8 (ctf_member_next): ... this. Support recursive unnamed member
9 iteration (off by default).
10 (ctf_member_info): Look up members in unnamed sub-structs.
11 * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call.
12 (ctf_dedup_emit_struct_members): Likewise.
13 * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed
14 members, and a normal member after the end.
15 * testsuite/libctf-lookup/struct-iteration.c: Verify that
16 ctf_member_count is consistent with the number of successful returns
17 from a non-recursive ctf_member_next.
18 * testsuite/libctf-lookup/struct-iteration-*: New, test iteration
19 over struct members.
20 * testsuite/libctf-lookup/struct-lookup.c: New test.
21 * testsuite/libctf-lookup/struct-lookup.lk: New test.
22
abed0b07
NA
232021-01-05 Nick Alcock <nick.alcock@oracle.com>
24
25 * ctf-link.c (ctf_link_warn_outdated_inputs): New.
26 (ctf_link_write): Call it.
27
9bc76971
NA
282021-01-05 Nick Alcock <nick.alcock@oracle.com>
29
30 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
31 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
32 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
33
c59e30ed
NA
342021-01-05 Nick Alcock <nick.alcock@oracle.com>
35
36 * Makefile.am (EXPECT): New.
37 (RUNTEST): Likewise.
38 (RUNTESTFLAGS): Likewise.
39 (CC_FOR_TARGET): Likewise.
40 (check-DEJAGNU): Likewise.
41 (AUTOMAKE_OPTIONS): Add dejagnu.
42 * Makefile.in: Regenerated.
43 * testsuite/config/default.exp: New.
44 * testsuite/lib/ctf-lib.exp: Likewise.
45 * testsuite/libctf-lookup/enum.lk: New test.
46 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
47 * testsuite/libctf-lookup/enum.c: New lookup test.
48 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
49 * testsuite/libctf-lookup/lookup.exp: New.
50
1038406a
NA
512021-01-05 Nick Alcock <nick.alcock@oracle.com>
52
53 * configure.ac (BFD_LIBADD): Remove.
54 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
55 (SHARED_LIBADD): Rename to...
56 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
57 linking statically.
58 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
59 libctf uses libintl.
60 (libctf_la_LIBADD): Reference libbfd.la directly, not via
61 BFD_LIBADD.
62 (libctf_la_DEPENDENCIES): Remove.
63 * Makefile.in: Regenerate.
64 * configure: Likewise.
65
37002871
NA
662021-01-05 Nick Alcock <nick.alcock@oracle.com>
67
68 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
69 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
70 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
71 (CTF_FT_REFS): New.
72 (CTF_FT_BITFIELD): Likewise.
73 (CTF_FT_ID): Likewise.
74 (ctf_dump_member): Do not do indentation here. Migrate the
75 type-printing parts of this into...
76 (ctf_dump_format_type): ... here, to be shared by all type printers.
77 Get the errno value for non-representable types right. Do not print
78 bitfield info for non-bitfields. Improve the format and indentation
79 of other type output. Shuffle spacing around to make all indentation
80 either 'width of column' or 4 chars.
81 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
82 (ctf_dump_objts): Likewise. Spacing shuffle.
83 (ctf_dump_var): Likewise.
84 (type_hex_digits): Migrate down in the file, to above its new user.
85 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
86 ctf_dump_format_type. Don't trim off excess linefeeds now we no
87 longer generate them. Dump enumerated types.
88
ffeece6a
NA
892021-01-05 Nick Alcock <nick.alcock@oracle.com>
90
91 * ctf-types.c (ctf_type_resolve): Improve comment.
92 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
93 Emit errors into the right dict.
94 (ctf_type_align): Likewise.
95 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
96 when adding a member without explicit offset when this member, or
97 the previous member, is incomplete.
98 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
99 forwards.
100 (ctf_dump_member): Do not try to print their alignment.
101
91e7ce2f
NA
1022021-01-05 Nick Alcock <nick.alcock@oracle.com>
103
104 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
105 (ctf_dump_format_type): Don't emit the size for function objects.
106 Dump the element type of arrays like we dump the pointed-to type of
107 pointers, etc.
108
57f97d0e
NA
1092021-01-05 Nick Alcock <nick.alcock@oracle.com>
110
111 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
112 (ctf_dump_header): Add 0x to the hex magic number.
113 (ctf_dump_str): Add 0x to the hex string offsets.
114 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
115 (ctf_dump_type): Adjust. Free it when we're done.
116 (type_hex_digits): New.
117 (ctf_dump_member): Align output depending on the width of the type
118 ID being generated. Use printf padding, not a loop, to generate
119 indentation.
120
b09ad6ea
NA
1212021-01-05 Nick Alcock <nick.alcock@oracle.com>
122
123 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
124
a7c23ac9
NB
1252021-01-04 Nicolas Boulenguez <nicolas@debian.org>
126
127 PR 27117
128 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
129 ACLOCAL_AMFLAGS -I dirs.
130 * configure: Regenerate.
131
250d07de
AM
1322021-01-01 Alan Modra <amodra@gmail.com>
133
134 Update year range in copyright notice of all files.
135
c2795844
AM
136For older changes see ChangeLog-2020
137\f
138Copyright (C) 2021 Free Software Foundation, Inc.
60da9d95 139
c2795844
AM
140Copying and distribution of this file, with or without modification,
141are permitted in any medium without royalty provided the copyright
142notice and this notice are preserved.
60da9d95 143
60da9d95
NA
144Local Variables:
145mode: change-log
146left-margin: 8
c2795844 147fill-column: 74
60da9d95
NA
148version-control: never
149End:
This page took 0.107072 seconds and 4 git commands to generate.