libctf: new test of enum lookups with the _next iterator
[deliverable/binutils-gdb.git] / libctf / ChangeLog
1 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2
3 * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test.
4 * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input.
5 * testsuite/libctf-lookup/enum-symbol.c: New lookup test.
6
7 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
8
9 * Makefile.am (EXPECT): New.
10 (RUNTEST): Likewise.
11 (RUNTESTFLAGS): Likewise.
12 (CC_FOR_TARGET): Likewise.
13 (check-DEJAGNU): Likewise.
14 (AUTOMAKE_OPTIONS): Add dejagnu.
15 * Makefile.in: Regenerated.
16 * testsuite/config/default.exp: New.
17 * testsuite/lib/ctf-lib.exp: Likewise.
18 * testsuite/libctf-lookup/enum.lk: New test.
19 * testsuite/libctf-lookup/enum-ctf.c: New CTF input.
20 * testsuite/libctf-lookup/enum.c: New lookup test.
21 * testsuite/libctf-lookup/ambiguous-struct*.c: New test.
22 * testsuite/libctf-lookup/lookup.exp: New.
23
24 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
25
26 * configure.ac (BFD_LIBADD): Remove.
27 (BFD_DEPENDENCIES): Likewise. Remove associated cases.
28 (SHARED_LIBADD): Rename to...
29 (CTF_LIBADD): ... this. Stick in a suitable libiberty even when
30 linking statically.
31 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
32 libctf uses libintl.
33 (libctf_la_LIBADD): Reference libbfd.la directly, not via
34 BFD_LIBADD.
35 (libctf_la_DEPENDENCIES): Remove.
36 * Makefile.in: Regenerate.
37 * configure: Likewise.
38
39 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
40
41 * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack.
42 * ctf-types.c (ctf_type_aname): No longer deal with slices here.
43 * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify.
44 (CTF_FT_REFS): New.
45 (CTF_FT_BITFIELD): Likewise.
46 (CTF_FT_ID): Likewise.
47 (ctf_dump_member): Do not do indentation here. Migrate the
48 type-printing parts of this into...
49 (ctf_dump_format_type): ... here, to be shared by all type printers.
50 Get the errno value for non-representable types right. Do not print
51 bitfield info for non-bitfields. Improve the format and indentation
52 of other type output. Shuffle spacing around to make all indentation
53 either 'width of column' or 4 chars.
54 (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type.
55 (ctf_dump_objts): Likewise. Spacing shuffle.
56 (ctf_dump_var): Likewise.
57 (type_hex_digits): Migrate down in the file, to above its new user.
58 (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to
59 ctf_dump_format_type. Don't trim off excess linefeeds now we no
60 longer generate them. Dump enumerated types.
61
62 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
63
64 * ctf-types.c (ctf_type_resolve): Improve comment.
65 (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards.
66 Emit errors into the right dict.
67 (ctf_type_align): Likewise.
68 * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE
69 when adding a member without explicit offset when this member, or
70 the previous member, is incomplete.
71 * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of
72 forwards.
73 (ctf_dump_member): Do not try to print their alignment.
74
75 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
76
77 * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type.
78 (ctf_dump_format_type): Don't emit the size for function objects.
79 Dump the element type of arrays like we dump the pointed-to type of
80 pointers, etc.
81
82 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
83
84 * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
85 (ctf_dump_header): Add 0x to the hex magic number.
86 (ctf_dump_str): Add 0x to the hex string offsets.
87 (ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
88 (ctf_dump_type): Adjust. Free it when we're done.
89 (type_hex_digits): New.
90 (ctf_dump_member): Align output depending on the width of the type
91 ID being generated. Use printf padding, not a loop, to generate
92 indentation.
93
94 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
95
96 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
97
98 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
99
100 PR 27117
101 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
102 ACLOCAL_AMFLAGS -I dirs.
103 * configure: Regenerate.
104
105 2021-01-01 Alan Modra <amodra@gmail.com>
106
107 Update year range in copyright notice of all files.
108
109 For older changes see ChangeLog-2020
110 \f
111 Copyright (C) 2021 Free Software Foundation, Inc.
112
113 Copying and distribution of this file, with or without modification,
114 are permitted in any medium without royalty provided the copyright
115 notice and this notice are preserved.
116
117 Local Variables:
118 mode: change-log
119 left-margin: 8
120 fill-column: 74
121 version-control: never
122 End:
This page took 0.032926 seconds and 5 git commands to generate.