This makes the testcase work when compiled with C++ compiler.
gdb/testsuite/ChangeLog:
* gdb.base/display.exp: Issue "set print asm-demangle on".
+2020-09-17 Pedro Alves <pedro@palves.net>
+
+ * gdb.base/display.exp: Issue "set print asm-demangle on".
+
2020-09-17 Pedro Alves <pedro@palves.net>
* gdb.base/find.c: Include <string.h>.
# x/0 j doesn't produce any output and terminates PA64 process when testing
gdb_test_no_output "x/0 j"
+# For when the test is built in C++ mode.
+gdb_test_no_output "set print asm-demangle on"
+
gdb_test "print/0 j" ".*Item count other than 1 is meaningless.*"
gdb_test "print/s sum" " = 1000" "ignored s"
gdb_test "print/i sum" ".*Format letter.*is meaningless.*.*" "no i"