1 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
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.
7 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
9 * Makefile.am (EXPECT): New.
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.
24 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
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
31 * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly.
33 (libctf_la_LIBADD): Reference libbfd.la directly, not via
35 (libctf_la_DEPENDENCIES): Remove.
36 * Makefile.in: Regenerate.
37 * configure: Likewise.
39 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
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.
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.
62 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
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
73 (ctf_dump_member): Do not try to print their alignment.
75 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
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
82 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
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
94 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
96 * ctf-decl.c (ctf_decl_push): Don't print array decls backwards.
98 2021-01-04 Nicolas Boulenguez <nicolas@debian.org>
101 * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with
102 ACLOCAL_AMFLAGS -I dirs.
103 * configure: Regenerate.
105 2021-01-01 Alan Modra <amodra@gmail.com>
107 Update year range in copyright notice of all files.
109 For older changes see ChangeLog-2020
111 Copyright (C) 2021 Free Software Foundation, Inc.
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.
121 version-control: never