binutils-gdb/ld/testsuite
Nick Alcock 57f97d0e6d libctf, ld: CTF dumper changes for consistency
In most places in CTF dumper output, we emit 0x... for hex strings, but
in three places (top-level type IDs, string table offsets, and the file
magic number) we don't emit the 0x.

This is very confusing if by chance there are no hex digits in the
output.  Add 0x consistently to everything, and adjust tests
accordingly.  While we're at it, improve the indentation of the output
so that subsequent lines in aggregate output are indented by at least as
many columns as the colon in the type output.  (Subsequent indentation
is still 4 spaces at a time.)

ld/ChangeLog
2021-01-05  Nick Alcock  <nick.alcock@oracle.com>

	* testsuite/ld-ctf/array.d: Adjust for dumper changes.
	* testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
	* testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
	* testsuite/ld-ctf/conflicting-enums.d: Likewise.
	* testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
	* testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
	* testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
	* testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
	* testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
	* testsuite/ld-ctf/cycle-1.d: Likewise.
	* testsuite/ld-ctf/cycle-2.A.d: Likewise.
	* testsuite/ld-ctf/cycle-2.B.d: Likewise.
	* testsuite/ld-ctf/cycle-2.C.d: Likewise.
	* testsuite/ld-ctf/data-func-conflicted.d: Likewise.
	* testsuite/ld-ctf/diag-cttname-null.d: Likewise.
	* testsuite/ld-ctf/diag-cuname.d: Likewise.
	* testsuite/ld-ctf/diag-parlabel.d: Likewise.
	* testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
	* testsuite/ld-ctf/function.d: Likewise.
	* testsuite/ld-ctf/slice.d: Likewise.
	* testsuite/ld-ctf/super-sub-cycles.d: Likewise.

libctf/ChangeLog
2021-01-05  Nick Alcock  <nick.alcock@oracle.com>

	* ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs.
	(ctf_dump_header): Add 0x to the hex magic number.
	(ctf_dump_str): Add 0x to the hex string offsets.
	(ctf_dump_membstate_t) <cdm_toplevel_indent>: New.
	(ctf_dump_type): Adjust.  Free it when we're done.
	(type_hex_digits): New.
	(ctf_dump_member): Align output depending on the width of the type
	ID being generated.  Use printf padding, not a loop, to generate
	indentation.
2021-01-05 14:53:39 +00:00
..
config Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-aarch64 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-alpha Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-arc Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-arm PR26822, How to prevent a STT_FILE with absolute path in the linked image 2021-01-04 18:58:15 +10:30
ld-auto-import Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-avr Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-bootstrap Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-bpf Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-cdtest Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-checks Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-cris Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-crx Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-csky
ld-ctf libctf, ld: CTF dumper changes for consistency 2021-01-05 14:53:39 +00:00
ld-cygwin Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-d10v Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-discard Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-dynamic Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-elf Re: elf: Allow mixed ordered/unordered inputs for non-relocatable link 2021-01-05 15:47:06 +10:30
ld-elfcomm Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-elfvers Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-elfvsb Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-elfweak Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-fastcall Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-frv Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-gc Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-h8300 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-i386 PR26822, How to prevent a STT_FILE with absolute path in the linked image 2021-01-04 18:58:15 +10:30
ld-ia64 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-ifunc Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-libs Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-linkonce Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-m68hc11 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-m68k Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-mep Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-metag Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-mips-elf PR26822, How to prevent a STT_FILE with absolute path in the linked image 2021-01-04 18:58:15 +10:30
ld-misc Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-mmix Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-mn10300 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-msp430-elf Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-nds32 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-nios2
ld-or1k Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-pdp11 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-pe Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-pie Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-plugin PR26822, How to prevent a STT_FILE with absolute path in the linked image 2021-01-04 18:58:15 +10:30
ld-powerpc Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-pru
ld-riscv-elf Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-s12z Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-s390 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-scripts ld sysroot-prefix test fails 2021-01-05 23:09:05 +10:30
ld-selective Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-sh Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-shared Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-size Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-sparc Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-spu Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-srec Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-tic6x PR26822, How to prevent a STT_FILE with absolute path in the linked image 2021-01-04 18:58:15 +10:30
ld-tilegx Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-tilepro Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-undefined Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-unique Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-v850 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-vax-elf Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-visium Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-vxworks Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-x86-64 PR26822, How to prevent a STT_FILE with absolute path in the linked image 2021-01-04 18:58:15 +10:30
ld-xc16x Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-xstormy16 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-xtensa PR26822, How to prevent a STT_FILE with absolute path in the linked image 2021-01-04 18:58:15 +10:30
ld-z8k Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ld-z80 Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
lib Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-9303