gcc/libiberty/testsuite
Tom Tromey ca2f7c8492 libiberty: Invoke D demangler when --format=auto
Investigating GDB PR d/31580 showed that the libiberty demangler
doesn't automatically demangle D mangled names.  However, I think it
should -- like C++ and Rust (new-style), D mangled names are readily
distinguished by the leading "_D", and so the likelihood of confusion
is low.  The other non-"auto" cases in this code are Ada (where the
encoded form could more easily be confused by ordinary programs) and
Java (which is long gone, but which also shared the C++ mangling and
thus was just an output style preference).

This patch also fixed another GDB bug, though of course that part
won't apply to the GCC repository.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31580
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30276

libiberty
	* cplus-dem.c (cplus_demangle): Try the D demangler with
	"auto" format.
	* testsuite/d-demangle-expected: Add --format=auto test.
2024-04-02 13:30:19 -06:00
..
d-demangle-expected libiberty: Invoke D demangler when --format=auto 2024-04-02 13:30:19 -06:00
demangle-expected c++, demangle: Implement https://github.com/itanium-cxx-abi/cxx-abi/issues/148 non-proposal 2024-01-13 10:23:53 +01:00
demangler-fuzzer.c Update copyright years. 2024-01-03 12:19:35 +01:00
Makefile.in Update copyright years. 2024-01-03 12:19:35 +01:00
rust-demangle-expected
test-demangle.c Update copyright years. 2024-01-03 12:19:35 +01:00
test-expandargv.c Update copyright years. 2024-01-03 12:19:35 +01:00
test-pexecute.c Update copyright years. 2024-01-03 12:19:35 +01:00
test-strtol.c Update copyright years. 2024-01-03 12:19:35 +01:00