binutils-gdb/libiberty/testsuite
Tom Tromey b1741ab0da 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:53:13 -06:00
..
d-demangle-expected libiberty: Invoke D demangler when --format=auto 2024-04-02 13:53:13 -06:00
demangle-expected Import gcc commit 65388b28656d65595bdaf191df85af81c35ca63 which adds support for explicit object member function mangling. 2024-01-17 12:06:48 +00:00
demangler-fuzzer.c Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
Makefile.in Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
rust-demangle-expected Import libiberty from gcc 2022-05-13 16:43:15 +09:30
test-demangle.c Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
test-expandargv.c Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
test-pexecute.c Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30
test-strtol.c Update year range in copyright notice of binutils files 2024-01-04 22:58:12 +10:30