gdb.base/display.exp C++ify

This makes the testcase work when compiled with C++ compiler.

gdb/testsuite/ChangeLog:

	* gdb.base/display.exp: Issue "set print asm-demangle on".
This commit is contained in:
Pedro Alves
2020-09-17 23:33:40 +01:00
parent c8b188085d
commit 73e18ac9da
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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>.

View File

@ -195,6 +195,9 @@ gdb_test "print j" " = 0\[\\r\\n\]+" "debug test output 3"
# 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"